get the device's status