forked from espressif/esp-idf
Merge branch 'feature/get_sta_authmode' into 'master'
Add get station auth mode See merge request !57
This commit is contained in:
@@ -190,9 +190,9 @@ static esp_err_t esp_system_event_debug(system_event_t *event)
|
|||||||
{
|
{
|
||||||
system_event_sta_connected_t *connected;
|
system_event_sta_connected_t *connected;
|
||||||
connected = &event->event_info.connected;
|
connected = &event->event_info.connected;
|
||||||
WIFI_DEBUG("SYSTEM_EVENT_STA_CONNECTED\nssid:%s, ssid_len:%d, bssid:%02x:%02x:%02x:%02x:%02x:%02x, channel:%d\n", \
|
WIFI_DEBUG("SYSTEM_EVENT_STA_CONNECTED\nssid:%s, ssid_len:%d, bssid:%02x:%02x:%02x:%02x:%02x:%02x, channel:%d, authmode:%d\n", \
|
||||||
connected->ssid, connected->ssid_len, connected->bssid[0], connected->bssid[0], connected->bssid[1], \
|
connected->ssid, connected->ssid_len, connected->bssid[0], connected->bssid[0], connected->bssid[1], \
|
||||||
connected->bssid[3], connected->bssid[4], connected->bssid[5], connected->channel);
|
connected->bssid[3], connected->bssid[4], connected->bssid[5], connected->channel, connected->authmode);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case SYSTEM_EVENT_STA_DISCONNECTED:
|
case SYSTEM_EVENT_STA_DISCONNECTED:
|
||||||
|
@@ -19,6 +19,7 @@
|
|||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
#include "esp_err.h"
|
#include "esp_err.h"
|
||||||
|
#include "esp_wifi.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@@ -56,6 +57,7 @@ typedef struct {
|
|||||||
uint8_t ssid_len; /**< SSID length of connected AP */
|
uint8_t ssid_len; /**< SSID length of connected AP */
|
||||||
uint8_t bssid[6]; /**< BSSID of connected AP*/
|
uint8_t bssid[6]; /**< BSSID of connected AP*/
|
||||||
uint8_t channel; /**< channel of connected AP*/
|
uint8_t channel; /**< channel of connected AP*/
|
||||||
|
wifi_auth_mode_t authmode;
|
||||||
} system_event_sta_connected_t;
|
} system_event_sta_connected_t;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
@@ -66,8 +68,8 @@ typedef struct {
|
|||||||
} system_event_sta_disconnected_t;
|
} system_event_sta_disconnected_t;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
uint8_t old_mode; /**< the old auth mode of AP */
|
wifi_auth_mode_t old_mode; /**< the old auth mode of AP */
|
||||||
uint8_t new_mode; /**< the new auth mode of AP */
|
wifi_auth_mode_t new_mode; /**< the new auth mode of AP */
|
||||||
} system_event_sta_authmode_change_t;
|
} system_event_sta_authmode_change_t;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
Reference in New Issue
Block a user