mesh: pass configuration server model to mesh_configuration_server_process_heartbeat

This commit is contained in:
Matthias Ringwald 2019-08-14 18:40:13 +02:00
parent b77439a1e3
commit 0be1a2a7cf
3 changed files with 3 additions and 3 deletions

View File

@ -1087,7 +1087,7 @@ static void mesh_control_message_handler(mesh_pdu_t * pdu){
printf("Opcode: 0x%02x\n", opcode);
switch(opcode){
case 0x0a:
mesh_configuration_server_process_heartbeat(pdu);
mesh_configuration_server_process_heartbeat(&mesh_configuration_server_model, pdu);
break;
default:
break;

View File

@ -2202,6 +2202,6 @@ const mesh_operation_t * mesh_configuration_server_get_operations(void){
return mesh_configuration_server_model_operations;
}
void mesh_configuration_server_process_heartbeat(mesh_pdu_t * pdu){
void mesh_configuration_server_process_heartbeat(mesh_model_t * configuration_server_model, mesh_pdu_t * pdu){
printf("HEARTBEAT\n");
}

View File

@ -84,7 +84,7 @@ const mesh_operation_t * mesh_configuration_server_get_operations(void);
void mesh_configuration_server_feature_changed(void);
void mesh_configuration_server_process_heartbeat(mesh_pdu_t * pdu);
void mesh_configuration_server_process_heartbeat(mesh_model_t * mesh_model, mesh_pdu_t * pdu);
// PTS Testing
void config_nekey_list_set_max(uint16_t max);