beegee3
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
6 deletions
-
src/wifi/ahoywifi.h
|
@ -34,6 +34,7 @@ class ahoywifi { |
|
|
DISCONNECTED = 0, |
|
|
DISCONNECTED = 0, |
|
|
CONNECTING, |
|
|
CONNECTING, |
|
|
CONNECTED, |
|
|
CONNECTED, |
|
|
|
|
|
IN_AP_MODE, |
|
|
GOT_IP |
|
|
GOT_IP |
|
|
} WiFiStatus_t; |
|
|
} WiFiStatus_t; |
|
|
|
|
|
|
|
@ -41,6 +42,8 @@ class ahoywifi { |
|
|
void setupAp(void); |
|
|
void setupAp(void); |
|
|
void setupStation(void); |
|
|
void setupStation(void); |
|
|
void sendNTPpacket(IPAddress& address); |
|
|
void sendNTPpacket(IPAddress& address); |
|
|
|
|
|
void sortRSSI(int *sort, int n); |
|
|
|
|
|
void getBSSIDs(void); |
|
|
void connectionEvent(WiFiStatus_t status); |
|
|
void connectionEvent(WiFiStatus_t status); |
|
|
#if defined(ESP8266) |
|
|
#if defined(ESP8266) |
|
|
void onConnect(const WiFiEventStationModeConnected& event); |
|
|
void onConnect(const WiFiEventStationModeConnected& event); |
|
@ -50,8 +53,7 @@ class ahoywifi { |
|
|
void onWiFiEvent(WiFiEvent_t event); |
|
|
void onWiFiEvent(WiFiEvent_t event); |
|
|
#endif |
|
|
#endif |
|
|
void welcome(String msg); |
|
|
void welcome(String msg); |
|
|
void sortRSSI(int *sort, int n); |
|
|
|
|
|
void getBSSIDs(void); |
|
|
|
|
|
|
|
|
|
|
|
settings_t *mConfig; |
|
|
settings_t *mConfig; |
|
|
appWifiCb mAppWifiCb; |
|
|
appWifiCb mAppWifiCb; |
|
@ -67,11 +69,8 @@ class ahoywifi { |
|
|
uint8_t mCnt; |
|
|
uint8_t mCnt; |
|
|
uint32_t *mUtcTimestamp; |
|
|
uint32_t *mUtcTimestamp; |
|
|
|
|
|
|
|
|
uint8_t mLoopCnt; |
|
|
|
|
|
bool mScanActive; |
|
|
|
|
|
uint8_t mLastApClients; |
|
|
|
|
|
uint8_t mScanCnt; |
|
|
uint8_t mScanCnt; |
|
|
|
|
|
bool mScanActive; |
|
|
std::list<uint8_t> mBSSIDList; |
|
|
std::list<uint8_t> mBSSIDList; |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|