Advertisement
Guest User

Untitled

a guest
Oct 17th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.29 KB | None | 0 0
  1. ТА ЖЕ БАЛАНДА ВЫШЕ
  2.  
  3. typedef struct {
  4. uint8_t mac[6]; /**< MAC address of the station connected to ESP8266 soft-AP */
  5. uint8_t aid; /**< the aid that ESP8266 soft-AP gives to the station connected to */
  6. } system_event_ap_staconnected_t;
  7.  
  8. typedef struct {
  9. uint8_t mac[6]; /**< MAC address of the station disconnects to ESP8266 soft-AP */
  10. uint8_t aid; /**< the aid that ESP8266 soft-AP gave to the station disconnects to */
  11. } system_event_ap_stadisconnected_t;
  12.  
  13. typedef struct {
  14. int rssi; /**< Received probe request signal strength */
  15. uint8_t mac[6]; /**< MAC address of the station which send probe request */
  16. } system_event_ap_probe_req_rx_t;
  17.  
  18. typedef union {
  19. system_event_sta_connected_t connected; /**< ESP8266 station connected to AP */
  20. system_event_sta_disconnected_t disconnected; /**< ESP8266 station disconnected to AP */
  21. system_event_sta_scan_done_t scan_done; /**< ESP8266 station scan (APs) done */
  22. system_event_sta_authmode_change_t auth_change; /**< the auth mode of AP ESP8266 station connected to changed */
  23. system_event_sta_got_ip_t got_ip; /**< ESP8266 station got IP, first time got IP or when IP is changed */
  24. system_event_sta_wps_er_pin_t sta_er_pin; /**< ESP8266 station WPS enrollee mode PIN code received */
  25. system_event_sta_wps_fail_reason_t sta_er_fail_reason;/**< ESP8266 station WPS enrollee mode failed reason code received */
  26. system_event_ap_staconnected_t sta_connected; /**< a station connected to ESP8266 soft-AP */
  27. system_event_ap_stadisconnected_t sta_disconnected; /**< a station disconnected to ESP8266 soft-AP */
  28. system_event_ap_probe_req_rx_t ap_probereqrecved; /**< ESP8266 soft-AP receive probe request packet */
  29. system_event_got_ip6_t got_ip6; /**< ESP8266 station or ap or ethernet ipv6 addr state change to preferred */
  30. } system_event_info_t;
  31.  
  32. typedef struct {
  33. system_event_id_t event_id; /**< event ID */
  34. system_event_info_t event_info; /**< event information */
  35. } system_event_t;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement