Changed the signature for getting a device list
Added a check if a device is connected or not