mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-31 10:20:58 +00:00
mesh: if proxy server is not enabled, return status ADVERTISEMENTS NOT SUPPORTED in node identity status message
This commit is contained in:
parent
7bd12f9f48
commit
fb817b0522
@ -59,6 +59,7 @@
|
||||
|
||||
// #define ENABLE_MESH_ADV_BEARER
|
||||
// #define ENABLE_MESH_PB_ADV
|
||||
#define ENABLE_MESH_PROXY_SERVER
|
||||
#define ENABLE_MESH_PB_GATT
|
||||
|
||||
|
||||
@ -2566,11 +2567,13 @@ static void config_node_identity_status(mesh_model_t *mesh_model, uint16_t netke
|
||||
if (network_key == NULL){
|
||||
status = MESH_FOUNDATION_STATUS_INVALID_NETKEY_INDEX;
|
||||
} else {
|
||||
#ifdef ENABLE_MESH_PROXY_SERVER
|
||||
if (network_key->node_id_advertisement_running == 0){
|
||||
state = MESH_FOUNDATION_NODE_IDENTITY_STATE_ADVERTISING_STOPPED;
|
||||
} else {
|
||||
state = MESH_FOUNDATION_NODE_IDENTITY_STATE_ADVERTISING_RUNNING;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
// setup message
|
||||
|
Loading…
x
Reference in New Issue
Block a user