This section includes the asynchronous event handlers routines
porting ACTION: -define your routine as the value of this handler
#define sl_HttpServerCallback SimpleLinkHttpServerCallback |
HTTP server async event.
- Parameters
-
- Parameters:
- pSlHttpServerEvent->Event = SL_NETAPP_HTTPGETTOKENVALUE_EVENT
- pSlHttpServerEvent->EventData fields:
- pSlHttpServerResponse->ResponseData fields:
- pSlHttpServerEvent->Event = SL_NETAPP_HTTPPOSTTOKENVALUE_EVENT
- pSlHttpServerEvent->EventData.httpPostData fields:
- action
- token_name
- token_value
- pSlHttpServerResponse->ResponseData fields:
- See Also
- Note
- belongs to configuration_sec
- Warning
#define sl_NetAppEvtHdlr SimpleLinkNetAppEventHandler |
NETAPP Async event handler.
- Parameters
-
- Parameters:
- pSlWlanEvent->Event = SL_NETAPP_IPV4_IPACQUIRED_EVENT, IPV4 acquired event
- pSlWlanEvent->EventData.ipAcquiredV4 fields:
- pSlWlanEvent->Event = SL_NETAPP_IP_LEASED_EVENT, AP or P2P go dhcp lease event
- pSlWlanEvent->EventData.ipLeased fields:
- ip_address
- lease_time
- mac
- pSlWlanEvent->Event = SL_NETAPP_IP_RELEASED_EVENT, AP or P2P go dhcp ip release event
- pSlWlanEvent->EventData.ipReleased fields
- See Also
- Note
- belongs to configuration_sec
- Warning
#define sl_SockEvtHdlr SimpleLinkSockEventHandler |
Socket Async event handler.
- Parameters
-
- Parameters:
- pSlSockEvent->Event = SL_SOCKET_TX_FAILED_EVENT
- pSlSockEvent->EventData fields:
- pSlSockEvent->Event = SL_SOCKET_ASYNC_EVENT
- pSlSockEvent->EventData fields:
- sd
- type: SSL_ACCEPT or RX_FRAGMENTATION_TOO_BIG or OTHER_SIDE_CLOSE_SSL_DATA_NOT_ENCRYPTED
- val
- See Also
- Note
- belongs to configuration_sec
- Warning
#define sl_WlanEvtHdlr SimpleLinkWlanEventHandler |
General async event for inspecting general events.
- Parameters
-
- Parameters:
pSlDeviceEvent->Event = SL_DEVICE_FATAL_ERROR_EVENT
- pSlDeviceEvent->EventData.deviceEvent fields:
- status: An error code indication from the device
- sender: The sender originator which is based on SlErrorSender_e enum
- Example:
printf(General Event Handler - ID=%d Sender=%d\n\n",
pSlDeviceEvent->EventData.deviceEvent.status, // status of the general event
pSlDeviceEvent->EventData.deviceEvent.sender); // sender type
- See Also
- Note
- belongs to configuration_sec
- Warning
WLAN Async event handler
- Parameters
-
- Parameters:
- pSlWlanEvent->Event = SL_WLAN_CONNECT_EVENT , STA or P2P client connection indication event
- pSlWlanEvent->EventData.STAandP2PModeWlanConnected main fields:
- ssid_name
- ssid_len
- bssid
- go_peer_device_name
- go_peer_device_name_len
- pSlWlanEvent->Event = SL_WLAN_DISCONNECT_EVENT , STA or P2P client disconnection event
- pSlWlanEvent->EventData.STAandP2PModeDisconnected main fields:
- ssid_name
- ssid_len
- reason_code
- pSlWlanEvent->Event = SL_WLAN_STA_CONNECTED_EVENT , AP/P2P(Go) connected STA/P2P(Client)
- pSlWlanEvent->EventData.APModeStaConnected fields:
- go_peer_device_name
- mac
- go_peer_device_name_len
- wps_dev_password_id
- own_ssid: relevant for event sta-connected only
- own_ssid_len: relevant for event sta-connected only
- pSlWlanEvent->Event = SL_WLAN_STA_DISCONNECTED_EVENT , AP/P2P(Go) disconnected STA/P2P(Client)
- pSlWlanEvent->EventData.APModestaDisconnected fields:
- go_peer_device_name
- mac
- go_peer_device_name_len
- wps_dev_password_id
- own_ssid: relevant for event sta-connected only
- own_ssid_len: relevant for event sta-connected only
- pSlWlanEvent->Event = SL_WLAN_SMART_CONFIG_COMPLETE_EVENT
- pSlWlanEvent->EventData.smartConfigStartResponse fields:
- status
- ssid_len
- ssid
- private_token_len
- private_token
- pSlWlanEvent->Event = SL_WLAN_SMART_CONFIG_STOP_EVENT
- pSlWlanEvent->EventData.smartConfigStopResponse fields:
- pSlWlanEvent->Event = SL_WLAN_P2P_DEV_FOUND_EVENT
- pSlWlanEvent->EventData.P2PModeDevFound fields:
- go_peer_device_name
- mac
- go_peer_device_name_len
- wps_dev_password_id
- own_ssid: relevant for event sta-connected only
- own_ssid_len: relevant for event sta-connected only
- pSlWlanEvent->Event = SL_WLAN_P2P_NEG_REQ_RECEIVED_EVENT
- pSlWlanEvent->EventData.P2PModeNegReqReceived fields
- go_peer_device_name
- mac
- go_peer_device_name_len
- wps_dev_password_id
- own_ssid: relevant for event sta-connected only
- pSlWlanEvent->Event = SL_WLAN_CONNECTION_FAILED_EVENT , P2P only
- pSlWlanEvent->EventData.P2PModewlanConnectionFailure fields:
- See Also
- Note
- belongs to configuration_sec
- Warning