dwm_label_read

Reads the node label.

void dwm_label_read(uint8_t *label, uint8_t *len)
Parameters
  • input – (none)

  • outputStatus code, data, len

  • data – 0-16 bytes (the label)

  • len – 1 byte (length of the label)

C code example

uint8_t label[DWM_LABEL_LEN_MAX];
uint8_t len;
len: DWM_LABEL_LEN_MAX;
dwm_label_read(label, &len);

SPI/UART example

TLV Request

Type

Length

0x1C

0x00

Type 0x1C means command dwm_label_read

TLV Response

Type

Length

Value (see error codes)

Type

Length

Value

0x40

0x01

0x00

0x4C

0x10

label - max 16 bytes

0x01 0x02 0x03 … 0x0F 0x10

Type 0x4C means label