![]() |
MT7687 API Reference
LinkIt SDK v4
|
Typedefs | |
| typedef int32_t(* | wifi_event_handler_t) (wifi_event_t event, uint8_t *payload, uint32_t length) |
| This defines the Wi-Fi event handler. More... | |
| typedef wifi_event_handler_t | wifi_event_handler |
| This is only for compatibility purpose, so that applications implemented with an earlier version of the API can work with the updated API. | |
| typedef int32_t(* | wifi_rx_handler_t) (uint8_t *payload, uint32_t length) |
| This defines the 802.11 RX raw packet handler. More... | |
| typedef int32_t(* wifi_event_handler_t) (wifi_event_t event, uint8_t *payload, uint32_t length) |
This defines the Wi-Fi event handler.
Call wifi_connection_register_event_handler() to register a handler, then the Wi-Fi driver generates an event and sends it to the handler.
| [in] | event | is an optional event to register. For more details, please refer to wifi_event_t. |
| [in] | payload | is the payload for the event. When the event is WIFI_EVENT_IOT_CONNECTED in AP mode, payload is the connected STA's MAC address. When the event is WIFI_EVENT_IOT_CONNECTED in STA mode, payload is the connected AP's BSSID. |
| [in] | length | is the length of a packet. |
| typedef int32_t(* wifi_rx_handler_t) (uint8_t *payload, uint32_t length) |
This defines the 802.11 RX raw packet handler.
Call wifi_config_register_rx_handler() to register a handler, then the network processor will deliver the packets to the handler function instead of sending them to the IP stack.
| [in] | payload | is the packet payload. |
| [in] | length | is the packet length. |