Need to know when USB is connected to host PC

My application needs to know when there is an active host PC connection. We are using http over the USB ecm IP link, and as this is stateless cannot determine if the connection is there or not. Is there an API in Legato that can be queried that will indicate if the USB is connected to a host PC?

you can use unsandboxed application to read
/sys/devices/78d9000.usb/power_supply/usb/online:

Thank you, this is just what I’m looking for :slightly_smiling_face: