You are viewing documentation for version:
3.1.1
Update Callback Handlers#
In your existing application, replace each WiSeConnectâ„¢ SDK v2.x callback handler with the equivalent v3.x handler. Refer to the table below for the mapping of v2.x to v3.x callback handlers.
v2.x callback handlers are listed in alphabetical order of parameter name.
v2.x Callback | v3.x Callback |
---|
void * callback_handler_ptr( uint16_t status, uint8_t *buffer, const uint32_t length )
| sl_status_t * sl_net_event_handler_t( uint32_t event, sl_status_t status, void *data, uint32_t data_length )
|
callback_handler_ptr() | sl_status_t * sl_wifi_callback_function_t( sl_wifi_event_t event, void *data, uint32_t data_length, void *arg )
|
callback_handler_ptr() | sl_status_t * sl_wifi_stats_callback_t( sl_wifi_event_t event, void *data, uint32_t data_length, void *arg )
|
callback_handler_ptr() | sl_status_t * sl_wifi_twt_config_callback_t( sl_wifi_event_t event, sl_si91x_twt_response_t *data, uint32_t data_length, void *arg )
|
void * join_response_handler( uint16_t status, const uint8_t *buffer, const uint16_t length )
| sl_status_t * sl_wifi_join_callback_t( sl_wifi_event_t event, char *data, uint32_t data_length, void *arg )
|
void * scan_response_handler( uint16_t status, const uint8_t *buffer, const uint16_t length )
| sl_status_t * sl_wifi_scan_callback_t( sl_wifi_event_t event, sl_wifi_scan_result_t *data, uint32_t data_length, void *arg )
|