![Mediatek Labs LinkIt Developer'S Manual Download Page 15](http://html1.mh-extra.com/html/mediatek-labs/linkit/linkit_developers-manual_1760805015.webp)
MediaTek LinkIt™ Development
Platform for RTOS Wi-Fi Developer's
Guide
© 2015 - 2017 MediaTek Inc.
Page 11 of 36
This document contains information that is proprietary to MediaTek Inc. (“MediaTek”) and/or its licensor(s).
Any unauthorized use, reproduction or disclosure of this document in whole or in part is strictly prohibited.
Event
Description
from.
0, STA port; 1, AP port.
WIFI_EVENT_IOT_REPORT_BEACON_PROBE
_RESPONSE
•
This event is triggered when beacon or probe response is
received during scan process (see the
wifi_event_t
enumeration).
•
Event payload
o
The beacon or probe response raw data, the length is
based on the packet frame received.
o
The payload can be parsed by the function
wifi_connection_parse_beacon()
. More details
can be found in the Wi-Fi API Reference Manual.
WIFI_EVENT_IOT_WPS_COMPLETE
•
Credential event, triggered by the Enrollee when it
successfully parses the WPS credentials in M8 message.
•
Event payload
Represents the credentials used for WPS, the payload format
follows
wifi_wps_credential_info_t
structure. More
details please refer to Wi-Fi API Reference Manual.
WIFI_EVENT_IOT_INIT_COMPLETE
•
Initialization complete event for Wi-Fi module.
Triggered when supplicant initialization is complete.
•
Event payload
o
Zero data (6 bytes) and port number (1 byte).
Port number indicates which port the event initiated
from.
0, STA port; 1, AP port.
WIFI_EVENT_IOT_REPORT_FILTERED_FRA
ME
•
Reports the expected management packet frame (see the
wifi_event_t
enumeration).
Triggered after invoking the function
wifi_config_set_rx_filter()
.The user can choose several
types of frames at the same time. More details please refer to Wi-
Fi API Reference Manual.
•
Event payload
Expected management packet frame.
WIFI_EVENT_IOT_CONNECTION_FAILED
•
Connection has failed.
This event can only be triggered when the current password is
wrong, other cases are not available yet.
•
Event payload
o
Port number (1 byte) and 2 bytes reason code.
Port number indicates which port the event initiated
from.
0, STA port; 1, AP port.
reason code: 100 means password wrong.
An example code to describe events to register or unregister a callback for the
WIFI_EVENT_IOT_CONNECTED
,
WIFI_EVENT_IOT_SCAN_COMPLETE
,
WIFI_EVENT_IOT_DISCONNECTED
,
WIFI_EVENT_IOT_PORT_SECURE
events is provided below. Each event needs to be registered or unregistered individually.