mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-12 01:53:07 +03:00
optionally allow WPS (#4889)
This commit is contained in:
@ -575,13 +575,27 @@ enum wps_cb_status {
|
||||
WPS_CB_ST_UNK,
|
||||
};
|
||||
|
||||
typedef void (*wps_st_cb_t)(int status);
|
||||
|
||||
#ifdef NO_EXTRA_4K_HEAP
|
||||
/* check cores/esp8266/core_esp8266_main.cpp for comments about this */
|
||||
|
||||
bool wifi_wps_enable(WPS_TYPE_t wps_type);
|
||||
bool wifi_wps_disable(void);
|
||||
bool wifi_wps_start(void);
|
||||
|
||||
typedef void (*wps_st_cb_t)(int status);
|
||||
bool wifi_set_wps_cb(wps_st_cb_t cb);
|
||||
|
||||
#else
|
||||
|
||||
bool WPS_is_unavailable_in_this_configuration__Please_check_FAQ_or_board_generator_tool ();
|
||||
#define wifi_wps_enable(...) WPS_is_unavailable_in_this_configuration__Please_check_FAQ_or_board_generator_tool()
|
||||
#define wifi_wps_disable() WPS_is_unavailable_in_this_configuration__Please_check_FAQ_or_board_generator_tool()
|
||||
#define wifi_wps_start() WPS_is_unavailable_in_this_configuration__Please_check_FAQ_or_board_generator_tool()
|
||||
#define wifi_set_wps_cb(...) WPS_is_unavailable_in_this_configuration__Please_check_FAQ_or_board_generator_tool()
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
typedef void (*freedom_outside_cb_t)(uint8 status);
|
||||
int wifi_register_send_pkt_freedom_cb(freedom_outside_cb_t cb);
|
||||
void wifi_unregister_send_pkt_freedom_cb(void);
|
||||
|
Reference in New Issue
Block a user