This commit is contained in:
vecais-dumais-laacis 2024-09-23 11:25:11 +08:00 committed by GitHub
commit d1e9e13532
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -77,6 +77,10 @@ uint8_t bt_mesh_get_device_role(struct bt_mesh_model *model, bool srv_send)
bt_mesh_client_user_data_t *client = NULL;
if (srv_send) {
if (IS_ENABLED(CONFIG_BLE_MESH_PROVISIONER) && bt_mesh_is_provisioner_en()) {
BT_DBG("Message is sent by a provisioner(server) model");
return PROVISIONER;
}
BT_DBG("Message is sent by a server model");
return NODE;
}