mesh: register for mesh beacons to avoid crash, temp enable adv bearer

This commit is contained in:
Matthias Ringwald 2019-06-27 10:44:31 +02:00
parent c7dcf8185f
commit 51ae8f0aee
2 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,7 @@
#define ENABLE_MICRO_ECC_P256
// Mesh Config
// #define ENABLE_MESH_ADV_BEARER
#define ENABLE_MESH_ADV_BEARER
#define ENABLE_MESH_GATT_BEARER
// #define ENABLE_MESH_PB_ADV
#define ENABLE_MESH_PB_GATT

View File

@ -1018,6 +1018,7 @@ int btstack_main(void)
// Setup GATT bearer
gatt_bearer_init();
gatt_bearer_register_for_mesh_network_pdu(&mesh_proxy_packet_handler_network_pdu);
gatt_bearer_register_for_mesh_beacon(&mesh_proxy_packet_handler_network_pdu);
gatt_bearer_register_for_mesh_proxy_configuration(&packet_handler_for_mesh_proxy_configuration);
mesh_network_set_proxy_message_handler(proxy_configuration_message_handler);