leaps_gpio_value_get

Read pin value.

Input
Output
  • Status Code

  • gpio_val: ? 8-bit unsigned integer ? (0|1)

Example

TLV Request

Type

Length

Value

pin index

0x2b

0x01

0x0D

Type 0x2b means command leaps_gpio_value_get

TLV response

Type

Length

Value

Type

Length

Value

pin Value (0,1)

0x40

0x01

0x00

0x55

0x01

0x00

Type 0x40 means status code

Type 0x55 means pin value