leaps_dev_status_get

Reads device status information.


Input
  • (none)

Output
  • uptime: ? 32-bit unsigned integer ? (device uptime in seconds)

  • temperature: ? 16-bit signed integer ? (temperature in degrees Celsius)

  • battery_voltage: ? 16-bit unsigned integer ? (battery voltage in millivolts)

  • battery_state: ? 4-bits ? (battery state = NO_BATTERY: 0, CHARGING: 1, CHARGED: 2, DISCHARGE: 3, VBAT_LOW: 4, VBAT_EMPTY= 5)

  • battery_level: ? 7-bit unsigned integer ? (battery level in percents)


Example

TLV Request

Type

Length

0x25

0x00

Type 0x25 (37 dec) means command leaps_dev_status_get

TLV response

Type

Length

Value

Type

Length

Value

uptime

temperature

battery:
(byte 0-1) voltage
(byte 2 ) level
(byte 3) state
(byte 4-5) reserved

0x40

0x01

0x00

0x59

0x0C

0x2C 0x00 0x00 0x00

0x22 0x00

0x2d 0x0f 0x3e

0x01 0x00 0x00

Type 0x40 (64 dec) means status code

Type 0x59 (89 dec) means device status