CC32XX SimpleLink Host Driver  1.0.0.10
 All Data Structures Functions Variables Groups Pages
Configuration - Event Handlers

Macros

#define sl_WlanEvtHdlr   SimpleLinkWlanEventHandler
 General async event for inspecting general events. More...
 
#define sl_NetAppEvtHdlr   SimpleLinkNetAppEventHandler
 NETAPP Async event handler. More...
 
#define sl_HttpServerCallback   SimpleLinkHttpServerCallback
 HTTP server async event. More...
 
#define sl_SockEvtHdlr   SimpleLinkSockEventHandler
 Socket Async event handler. More...
 

Detailed Description

This section includes the asynchronous event handlers routines

porting ACTION: -define your routine as the value of this handler

Macro Definition Documentation

#define sl_HttpServerCallback   SimpleLinkHttpServerCallback

HTTP server async event.

Parameters
[out]pSlHttpServerEventpointer to SlHttpServerEvent_t
[in]pSlHttpServerResponsepointer to SlHttpServerResponse_t
Parameters:
  • pSlHttpServerEvent->Event = SL_NETAPP_HTTPGETTOKENVALUE_EVENT
    • pSlHttpServerEvent->EventData fields:
      • httpTokenName
        • data
        • len
    • pSlHttpServerResponse->ResponseData fields:
      • data
      • len
  • pSlHttpServerEvent->Event = SL_NETAPP_HTTPPOSTTOKENVALUE_EVENT
    • pSlHttpServerEvent->EventData.httpPostData fields:
      • action
      • token_name
      • token_value
    • pSlHttpServerResponse->ResponseData fields:
      • data
      • len
See Also
Note
belongs to configuration_sec
Warning
#define sl_NetAppEvtHdlr   SimpleLinkNetAppEventHandler

NETAPP Async event handler.

Parameters
[out]pSlNetApppointer to SlNetAppEvent_t data
Parameters:
  • pSlWlanEvent->Event = SL_NETAPP_IPV4_IPACQUIRED_EVENT, IPV4 acquired event
    • pSlWlanEvent->EventData.ipAcquiredV4 fields:
      • ip
      • gateway
      • dns
  • 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
      • ip_address
      • mac
      • reason
See Also
Note
belongs to configuration_sec
Warning
#define sl_SockEvtHdlr   SimpleLinkSockEventHandler

Socket Async event handler.

Parameters
[out]pSlSockEventpointer to SlSockEvent_t data
Parameters:
  • pSlSockEvent->Event = SL_SOCKET_TX_FAILED_EVENT
    • pSlSockEvent->EventData fields:
      • sd
      • status
  • 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
[out]pSlDeviceEventpointer to SlDeviceEvent_t
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
[out]pSlWlanEventpointer to SlWlanEvent_t data
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:
      • status
  • 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:
      • status
See Also
Note
belongs to configuration_sec
Warning