Skip to content

Get details of Current Device State

Request

Security
apiKey
Path
idstring, (uuid)required

ID of the device

cURL
curl -i -X GET \
  'https://develop-api.esper.io/_mock/openapi/device/v0/devices/{id}/devicestate' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Details of the current device state

Bodyapplication/json
gps_statestring

GPS state of the device

Enum:"LOCATION_MODE_HIGH_ACCURACY""LOCATION_MODE_SENSORS_ONLY""LOCATION_MODE_BATTERY_SAVING""LOCATION_MODE_OFF""LOCATION_MODE_ON"
wifi_stateboolean

WiFi state of the device

adb_enabledboolean

ADB state of the device

adb_timeoutinteger

ADB timeout value for the device

remote_adb_enabledboolean

Remote ADB state for the device

remote_adb_ipstring

Remote ADB IP for the device

remote_adb_portinteger

Remote ADB port for the device

audio_settingsobject

Different Audio types and respective values

rotation_statestring

Display rotation of the device

Enum:"AUTO""PORTRAIT_ONLY""LANDSCAPE_ONLY""INVERTED_PORTRAIT_ONLY""INVERTED_LANDSCAPE_ONLY"
bluetooth_stateboolean

Bluetooth state of device

brightness_scaleinteger

Brightess value for the device it will be in range 0 to 100

screen_off_timeoutinteger

Device screen off timeout

use_only_saved_apboolean

Whether device is allowed to connect to only saved Wifi APs

Response
{ "gps_state": "LOCATION_MODE_HIGH_ACCURACY", "wifi_state": true, "adb_enabled": true, "adb_timeout": 0, "remote_adb_enabled": true, "remote_adb_ip": "string", "remote_adb_port": 0, "audio_settings": {}, "rotation_state": "AUTO", "bluetooth_state": true, "brightness_scale": 0, "screen_off_timeout": 0, "use_only_saved_ap": true }