on connect return deviceInfo