Our website is under construction. Please stay tuned!

dwm_usr_data_write

Writes user data to the network.

void dwm_usr_data_write(uint8_t*, uint8_t, boolean_t)
Parameters
  • input – data, len, overwrite

  • data – ? 34 bytes max ? (the user data to be written)

  • len – (data length, 34 bytes max)

  • overwrite – ? bool ? (forced write, will overwrite data that are not yet sent to the bridge)

  • output – err_code

C code example

uint8_t len, data[DWM_USR_DATA_LEN_MAX];
len = DWM_USR_DATA_LEN_MAX;
dwm_usr_data_write(data, len, false);

SPI/UART example

TLV request

type

length

value

0x1A

0x23

overwrite flag 1st byte user data, 36 bytes max (2nd to 37-th bytes)

0x01 0x01 0x02 0x03 …. 0x23 0x22

Type 0x1A means command dwm_usr_data_write

TLV response

type

length

value (see error codes)

0x40

0x01

0x00

Type 0x40 means err_code of the command