Skip to content

Commit 82f52f9

Browse files
committed
WiFi: Switch to new WiFi layer
1 parent 39a1b19 commit 82f52f9

File tree

4 files changed

+42
-869
lines changed

4 files changed

+42
-869
lines changed

Firmware/RTK_Everywhere/Developer.ino

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,9 @@ bool espNowProcessRxPairedMessage() {return true;}
191191
esp_err_t espNowRemovePeer(const uint8_t *peerMac) {return ESP_OK;}
192192
esp_err_t espNowSendPairMessage(const uint8_t *sendToMac) {return ESP_OK;}
193193
bool espNowSetChannel(uint8_t channelNumber) {return false;}
194-
bool espNowStart() {return false;}
195-
#define ESPNOW_START() false
194+
bool espNowStart() {return true;}
196195
void espNowStaticPairing() {}
197196
bool espNowStop() {return true;}
198-
#define ESPNOW_STOP() true
199197
void espNowUpdate() {}
200198

201199
#endif // COMPILE_ESPNOW
@@ -206,29 +204,22 @@ void espNowUpdate() {}
206204

207205
#ifndef COMPILE_WIFI
208206

209-
void menuWiFi() {systemPrintln("**WiFi not compiled**");}
210-
bool wifiApIsRunning() {return false;}
211-
bool wifiConnect(bool startWiFiStation, bool startWiFiAP, unsigned long timeout) {return false;}
207+
void menuWiFi() {systemPrintln("**WiFi not compiled**");}
212208
void wifiDisplayNetworkData() {}
213209
void wifiDisplaySoftApStatus() {}
214210
bool wifiEspNowOff(const char * fileName, uint32_t lineNumber) {return true;}
215211
bool wifiEspNowOn(const char * fileName, uint32_t lineNumber) {return false;}
216212
void wifiEspNowSetChannel(WIFI_CHANNEL_t channel) {}
217-
uint32_t wifiGetStartTimeout() {return 0;}
218-
#define WIFI_IS_RUNNING() 0
219-
int wifiNetworkCount() {return 0;}
220-
void wifiResetThrottleTimeout() {}
221-
void wifiResetTimeout() {}
213+
uint32_t wifiGetStartTimeout() {return 0;}
214+
int wifiNetworkCount() {return 0;}
215+
void wifiResetThrottleTimeout() {}
216+
void wifiResetTimeout() {}
217+
const char * wifiSoftApGetSsid() {return "";}
222218
bool wifiSoftApOff(const char * fileName, uint32_t lineNumber) {return true;}
223219
bool wifiSoftApOn(const char * fileName, uint32_t lineNumber) {return false;}
224220
bool wifiStationOff(const char * fileName, uint32_t lineNumber) {return true;}
225221
bool wifiStationOn(const char * fileName, uint32_t lineNumber) {return false;}
226-
#define WIFI_SOFT_AP_RUNNING() false
227-
bool wifiStart() {return false;}
228-
bool wifiStationIsRunning() {return false;}
229-
#define WIFI_STOP() {}
230222
void wifiStopAll() {}
231-
bool wifiUnavailable() {return true;}
232223

233224
#endif // COMPILE_WIFI
234225

0 commit comments

Comments
 (0)