Our website is under construction. Please stay tuned!

dwm_label_write

Writes a label to the node.

int dwm_label_write(uint8_t*, uint8_t)
Parameters
  • input – label, len

  • data – ? 16 bytes max ? (the label bytes to be written)

  • len – ? 1 byte ? (label length, 16 max)

  • output – err_code

C code example

uint8_t len, label[DWM_LABEL_LEN_MAX];
int rv;
len = DWM_LABEL_LEN_MAX;
rv = dwm_label_write(label, len);
if ( len == rv )
printf(ok\n);
else
printf(error, %d, rv);

SPI/UART example

TLV request

type

length

value

0x1D

0x10

label, 16 bytes max

0x01 0x02 0x03 …. 0x0F 0x10

Type 0x1D means command dwm_label_write

TLV response

type

length

value (see error codes)

0x40

0x01

0x00

Type 0x40 means err_code of the command