ble_mesh: Check device uuid when init provisioning
This commit is contained in:
parent
a85459e245
commit
c2e24e306f
2 changed files with 2 additions and 5 deletions
|
@ -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 a new issue