mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
ble_mesh: Check device uuid when init provisioning
This commit is contained in:
parent
abcfcc47ec
commit
cd19f6faf1
@ -1750,6 +1750,8 @@ int bt_mesh_prov_init(const struct bt_mesh_prov *prov_info)
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
__ASSERT(prov_info->uuid, "%s, Device UUID is not initialized", __func__);
|
||||
|
||||
/* Changed by Espressif. Use micro-ecc to generate public key now. */
|
||||
key = bt_mesh_pub_key_get();
|
||||
if (!key) {
|
||||
|
@ -1420,11 +1420,6 @@ int bt_mesh_proxy_init(void)
|
||||
|
||||
bt_mesh_gatts_conn_cb_register(&conn_callbacks);
|
||||
|
||||
#if defined(CONFIG_BLE_MESH_PB_GATT)
|
||||
const struct bt_mesh_prov *prov = bt_mesh_prov_get();
|
||||
__ASSERT(prov && prov->uuid, "%s, Device UUID is not initialized", __func__);
|
||||
#endif
|
||||
|
||||
return bt_mesh_gatts_set_local_device_name(device_name);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user