Skip to content

Status callbacks #6032

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Feb 15, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add void *param to loopback functions
  • Loading branch information
Jarno Lamsa committed Feb 9, 2018
commit fd92fe190617630f09efd5f00a9fedf0a39db216
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ static void enet_tasklet_main(arm_event_s *event);
static void enet_tasklet_network_state_changed(mesh_connection_status_t status);
static void enet_tasklet_parse_network_event(arm_event_s *event);
static void enet_tasklet_configure_and_connect_to_network(void);
static void enet_tasklet_poll_network_status();
static void enet_tasklet_poll_network_status(void *param);
/*
* \brief A function which will be eventually called by NanoStack OS when ever the OS has an event to deliver.
* @param event, describes the sender, receiver and event type.
Expand Down Expand Up @@ -148,7 +148,7 @@ void enet_tasklet_parse_network_event(arm_event_s *event)
if (tasklet_data_ptr->tasklet_state != TASKLET_STATE_BOOTSTRAP_READY) {
tr_info("IPv6 bootstrap ready");
tasklet_data_ptr->tasklet_state = TASKLET_STATE_BOOTSTRAP_READY;
enet_tasklet_poll_network_status();
enet_tasklet_poll_network_status(NULL);
}
break;
case ARM_NWK_IP_ADDRESS_ALLOCATION_FAIL:
Expand Down Expand Up @@ -177,7 +177,7 @@ void enet_tasklet_parse_network_event(arm_event_s *event)
}
}

static void enet_tasklet_poll_network_status(void)
static void enet_tasklet_poll_network_status(void *param)
{
/* Check if we do have an IP */
uint8_t temp_ipv6[16];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void thread_tasklet_main(arm_event_s *event);
void thread_tasklet_network_state_changed(mesh_connection_status_t status);
void thread_tasklet_parse_network_event(arm_event_s *event);
void thread_tasklet_configure_and_connect_to_network(void);
void thread_tasklet_poll_network_status();
void thread_tasklet_poll_network_status(void *param);
#define TRACE_THREAD_TASKLET
#ifndef TRACE_THREAD_TASKLET
#define thread_tasklet_trace_bootstrap_info() ((void) 0)
Expand Down Expand Up @@ -181,7 +181,7 @@ void thread_tasklet_parse_network_event(arm_event_s *event)
thread_tasklet_data_ptr->tasklet_state = TASKLET_STATE_BOOTSTRAP_READY;
thread_tasklet_trace_bootstrap_info();
/* We are connected, for Local or Global IP */
thread_tasklet_poll_network_status();
thread_tasklet_poll_network_status(NULL);
}
break;
case ARM_NWK_NWK_SCAN_FAIL:
Expand Down Expand Up @@ -225,7 +225,7 @@ void thread_tasklet_parse_network_event(arm_event_s *event)
}
}

void thread_tasklet_poll_network_status()
void thread_tasklet_poll_network_status(void *param)
{
/* Check if we do have an IP */
uint8_t temp_ipv6[16];
Expand Down