esp_ble_mesh_provisioner_add_local_net_key() function
This function is called by Provisioner to add local network key.
Arguments
net_key
The network key to be added to the Provisioner local BLE Mesh stack.
net_idx
The network key index.
Return value
ESP_OK on success or error code otherwise.
Notes
net_key: If set to NULL, net_key will be generated internally. net_idx: If it is going to be generated internally, it should be set to 0xFFFF, and the new net_idx will be reported via an event.
![]()
esp_err_t esp_ble_mesh_provisioner_add_local_net_key(const uint8_t net_key[16], uint16_t net_idx)
esp_ble_mesh_provisioner_add_local_net_key() calls 2 functions:
![]()
esp_ble_mesh_provisioner_add_local_net_key()
esp_ble_mesh_provisioner_add_local_net_key() reads 7 variables and writes 4 variables:
![]()
esp_ble_mesh_provisioner_add_local_net_key()