mesh: rename callback registration for access messages

This commit is contained in:
Matthias Ringwald 2019-04-22 12:20:07 +02:00
parent 30453c8d4c
commit 5ae3767212
3 changed files with 8 additions and 6 deletions

View File

@ -1904,8 +1904,8 @@ int btstack_main(void)
// Transport layers (lower + upper))
mesh_transport_init();
mesh_upper_transport_register_segemented_message_handler(&mesh_segmented_message_handler);
mesh_upper_transport_register_unsegemented_message_handler(&mesh_unsegmented_message_handler);
mesh_upper_transport_register_segmented_access_message_handler(&mesh_segmented_message_handler);
mesh_upper_transport_register_unsegmented_access_message_handler(&mesh_unsegmented_message_handler);
// PTS Virtual Address Label UUID - without Config Model, PTS uses our device uuid
btstack_parse_hex("001BDC0810210B0E0A0C000B0E0A0C00", 16, label_uuid);

View File

@ -770,10 +770,11 @@ void mesh_upper_transport_set_primary_element_address(uint16_t unicast_address){
primary_element_address = unicast_address;
}
void mesh_upper_transport_register_unsegemented_message_handler(void (*callback)(mesh_network_pdu_t * network_pdu)){
void mesh_upper_transport_register_unsegmented_access_message_handler(void (*callback)(mesh_network_pdu_t *network_pdu)){
mesh_access_unsegmented_handler = callback;
}
void mesh_upper_transport_register_segemented_message_handler(void (*callback)(mesh_transport_pdu_t * transport_pdu)){
void mesh_upper_transport_register_segmented_access_message_handler(
void (*callback)(mesh_transport_pdu_t *transport_pdu)){
mesh_access_segmented_handler = callback;
}

View File

@ -57,9 +57,10 @@ void mesh_transport_set_device_key(const uint8_t * device_key);
void mesh_application_key_set(uint16_t appkey_index, uint8_t aid, const uint8_t * application_key);
void mesh_upper_transport_register_unsegemented_message_handler(void (*callback)(mesh_network_pdu_t * network_pdu));
void mesh_upper_transport_register_unsegmented_access_message_handler(void (*callback)(mesh_network_pdu_t *network_pdu));
void mesh_upper_transport_register_segemented_message_handler(void (*callback)(mesh_transport_pdu_t * transport_pdu));
void mesh_upper_transport_register_segmented_access_message_handler(
void (*callback)(mesh_transport_pdu_t *transport_pdu));
// Control PDUs