102 #ifndef __SMTCN_API_H__ 103 #define __SMTCN_API_H__ 186 uint8_t *password, uint8_t *password_length,
187 uint8_t *tlv_data, uint8_t *tlv_data_length);
void(* wifi_smart_connection_callback_t)(wifi_smart_connection_event_t event, void *data)
This callback function should be registered through the wifi_smart_connection_init(), and will be called when a Smart Connection event is received.
Definition: smt_api.h:141
Wi-Fi processor configuration / settings for the STA operations.
Locked channel event.
Definition: smt_api.h:118
void wifi_smart_connection_deinit(void)
This function de-initializes the Smart Connection and releases the resources.
wifi_smart_connection_status_t
Return values for the Smart Connection API.
Definition: smt_api.h:125
wifi_smart_connection_status_t wifi_smart_connection_start(uint16_t timeout_seconds)
This function starts the Smart Connection.
wifi_smart_connection_event_t
Smart Connection event.
Definition: smt_api.h:117
wifi_smart_connection_status_t wifi_smart_connection_init(const uint8_t *key, const uint8_t key_length, wifi_smart_connection_callback_t callback)
This function registers a callback function to establish the Smart Connection.
The operation is successful.
Definition: smt_api.h:127
Smart Connection timeout.
Definition: smt_api.h:120
wifi_smart_connection_status_t wifi_smart_connection_stop(void)
This function is called to inform smart connection task of exiting flag and then the task will automa...
The operation failed.
Definition: smt_api.h:126
The Smart Connection has finished.
Definition: smt_api.h:119
wifi_smart_connection_status_t wifi_smart_connection_get_result(uint8_t *ssid, uint8_t *ssid_length, uint8_t *password, uint8_t *password_length, uint8_t *tlv_data, uint8_t *tlv_data_length)
This function gets the Smart Connection result.