@@ -33,8 +33,10 @@ void ntpServerStop() {}
33
33
34
34
void menuTcpUdp () {systemPrint (" **Network not compiled**" );}
35
35
void networkBegin () {}
36
+ uint8_t networkConsumers () {return (0 );}
37
+ uint16_t networkGetConsumerTypes () {return (0 );}
36
38
IPAddress networkGetIpAddress () {return (" 0.0.0.0" );}
37
- const uint8_t * networkGetMacAddress ()
39
+ const uint8_t * networkGetMacAddress ()
38
40
{
39
41
static const uint8_t zero[6 ] = {0 , 0 , 0 , 0 , 0 , 0 };
40
42
#ifdef COMPILE_BT
@@ -49,10 +51,11 @@ bool networkInterfaceHasInternet(NetIndex_t index) {return false;}
49
51
bool networkIsInterfaceStarted (NetIndex_t index) {return false ;}
50
52
void networkMarkOffline (NetIndex_t index) {}
51
53
void networkMarkHasInternet (NetIndex_t index) {}
54
+ void networkSequenceBoot (NetIndex_t index) {}
55
+ void networkSequenceNextEntry (NetIndex_t index, bool debug) {}
52
56
void networkUpdate () {}
57
+ void networkValidateIndex (NetIndex_t index) {}
53
58
void networkVerifyTables () {}
54
- uint16_t networkGetConsumerTypes () {return (0 );}
55
- uint8_t networkConsumers () {return (0 );}
56
59
57
60
// ----------------------------------------
58
61
// NTRIP client
@@ -114,9 +117,10 @@ void discardUdpServerBytes(RING_BUFFER_OFFSET previousTail, RING_BUFFER_OFFSET n
114
117
#ifndef COMPILE_OTA_AUTO
115
118
116
119
void otaAutoUpdate () {}
120
+ bool otaNeedsNetwork () {return false ;}
121
+ void otaUpdate () {}
117
122
void otaUpdateStop () {}
118
123
void otaVerifyTables () {}
119
- void otaUpdate () {}
120
124
121
125
#endif // COMPILE_OTA_AUTO
122
126
@@ -127,6 +131,7 @@ void otaUpdate() {}
127
131
#ifndef COMPILE_MQTT_CLIENT
128
132
129
133
bool mqttClientIsConnected () {return false ;}
134
+ bool mqttClientNeedsNetwork () {return false ;}
130
135
void mqttClientPrintStatus () {}
131
136
void mqttClientRestart () {}
132
137
void mqttClientUpdate () {}
@@ -157,26 +162,54 @@ bool webServerStart(int httpPort = 80)
157
162
systemPrintln (" **AP not compiled**" );
158
163
return false ;
159
164
}
160
- void webServerStop () {}
161
165
bool parseIncomingSettings () {return false ;}
162
166
void sendStringToWebsocket (const char * stringToSend) {}
167
+ void stopWebServer () {}
168
+ bool webServerNeedsNetwork () {return false ;}
169
+ void webServerStop () {}
170
+ void webServerUpdate () {}
163
171
164
172
#endif // COMPILE_AP
165
- #ifndef COMPILE_WIFI
173
+
174
+ // ----------------------------------------
175
+ // ESP-NOW
176
+ // ----------------------------------------
177
+
178
+ #ifndef COMPILE_ESPNOW
179
+
180
+ bool espNowStart () {return false ;}
181
+ bool espNowStop () {return false ;}
182
+
183
+ bool espnowIsPaired () {return false ;}
184
+ void espnowProcessRTCM (byte incoming) {}
185
+ esp_err_t espnowRemovePeer (uint8_t *peerMac) {return ESP_OK;}
186
+ esp_err_t espnowSendPairMessage (uint8_t *sendToMac) {return ESP_OK;}
187
+ bool espnowSetChannel (uint8_t channelNumber) {return false ;}
188
+ void espnowStart () {}
189
+ void espnowStaticPairing () {}
190
+ void espnowStop () {}
191
+ void updateEspnow () {}
192
+
193
+ #endif // COMPILE_ESPNOW
166
194
167
195
// ----------------------------------------
168
196
// WiFi
169
197
// ----------------------------------------
170
198
199
+ #ifndef COMPILE_WIFI
200
+
171
201
void menuWiFi () {systemPrintln (" **WiFi not compiled**" );}
202
+ bool wifiApIsRunning () {return false ;}
172
203
bool wifiConnect (bool startWiFiStation, bool startWiFiAP, unsigned long timeout) {return false ;}
173
- bool wifiStart () {return false ;}
204
+ uint32_t wifiGetStartTimeout () {return 0 ;}
205
+ bool wifiIsRunning () {return false ;}
174
206
int wifiNetworkCount () {return 0 ;}
207
+ void wifiResetThrottleTimeout () {}
208
+ void wifiResetTimeout () {}
209
+ bool wifiStart () {return false ;}
175
210
bool wifiStationIsRunning () {return false ;}
176
- bool wifiApIsRunning () {return false ;}
177
- bool wifiIsRunning () {return false ;}
178
- uint32_t wifiGetStartTimeout () {return 0 ;}
179
211
#define WIFI_STOP () {}
212
+ bool wifiUnavailable () {return true ;}
180
213
181
214
#endif // COMPILE_WIFI
182
215
0 commit comments