Used DeviceInfo class for connected/disconnected events.