Exported Functions

group Mesh_Beacon_Exported_Functions

Functions

void beacon_uri_hash_gen(uint8_t uri_data[], uint16_t len)

generate uri hash

参数:
  • uri_data[in] uri

  • len[in] uri length

返回:

none

void beacon_uri_hash_calc(uint8_t uri_data[], uint16_t len, uint8_t uri_hash[4])

calculate uri hash

参数:
  • uri_data[in] uri

  • len[in] uri length

  • uri_hash[in] uri hash value

void beacon_snb_send_via_proxy(uint8_t net_key_index)

send snb via proxy

参数:

net_key_index[in] net key index

返回:

none

void beacon_send(void)

send beacon

返回:

none

void beacon_start(void)

start beacon

返回:

none

void beacon_stop(void)

stop beacon

返回:

none

void beacon_send_via_proxy(uint8_t net_key_index)

send snb or prb in gatt bearer

参数:

net_key_index[in] net key index

void beacon_receive(uint8_t bt_addr[6], uint8_t bt_addr_type, int8_t rssi, uint8_t *pbuffer, uint8_t len)

recevie beacon

参数:
  • bt_addr[in] bt addr

  • bt_addr_type[in] bt addr type

  • rssi[in] rssi

  • pbuffer[in] beacon

  • len[in] beacon length

返回:

none

bool beacon_cfg(beacon_cfg_type_t type, uint8_t *param, uint16_t param_len)

configure the mesh service adv

参数:
  • type[in] the parameter type, beacon_cfg_type_t

  • param[in] the parameter pointer

  • param_len[in] the parameter length

返回:

operation result