This method gets the current connected state of the device.
Returns true if the specified device is connected, otherwise false is returned.