mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 19:24:33 +02:00
ble_mesh: Check device uuid when init provisioning
This commit is contained in:
@@ -1750,6 +1750,8 @@ int bt_mesh_prov_init(const struct bt_mesh_prov *prov_info)
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__ASSERT(prov_info->uuid, "%s, Device UUID is not initialized", __func__);
|
||||||
|
|
||||||
/* Changed by Espressif. Use micro-ecc to generate public key now. */
|
/* Changed by Espressif. Use micro-ecc to generate public key now. */
|
||||||
key = bt_mesh_pub_key_get();
|
key = bt_mesh_pub_key_get();
|
||||||
if (!key) {
|
if (!key) {
|
||||||
|
@@ -1420,11 +1420,6 @@ int bt_mesh_proxy_init(void)
|
|||||||
|
|
||||||
bt_mesh_gatts_conn_cb_register(&conn_callbacks);
|
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);
|
return bt_mesh_gatts_set_local_device_name(device_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user