bool isDeviceConnected()

This function can be used to identify if a device is connected.

Return

True if the device is connected, false otherwise.