9
9
// Ethernet
10
10
// ----------------------------------------
11
11
12
+ bool ethernetLinkUp () {return false ;}
12
13
void menuEthernet () {systemPrintln (" **Ethernet not compiled**" );}
13
14
14
15
bool ntpLogIncreasing = false ;
@@ -33,8 +34,9 @@ void ntpServerStop() {}
33
34
34
35
void menuTcpUdp () {systemPrint (" **Network not compiled**" );}
35
36
void networkBegin () {}
36
- uint8_t networkConsumers () {return (0 );}
37
- uint16_t networkGetConsumerTypes () {return (0 );}
37
+ void networkConsumerAdd (NETCONSUMER_t consumer, NetIndex_t network, const char * fileName, uint32_t lineNumber) {}
38
+ bool networkConsumerIsConnected (NETCONSUMER_t consumer) {return false ;}
39
+ void networkConsumerRemove (NETCONSUMER_t consumer, NetIndex_t network, const char * fileName, uint32_t lineNumber) {}
38
40
IPAddress networkGetIpAddress () {return (" 0.0.0.0" );}
39
41
const uint8_t * networkGetMacAddress ()
40
42
{
@@ -44,7 +46,8 @@ const uint8_t * networkGetMacAddress()
44
46
return btMACAddress;
45
47
#endif
46
48
return zero;
47
- }
49
+ }
50
+ NetPriority_t networkGetPriority () {return 0 ;}
48
51
bool networkHasInternet () {return false ;}
49
52
bool networkHasInternet (NetIndex_t index) {return false ;}
50
53
bool networkInterfaceHasInternet (NetIndex_t index) {return false ;}
@@ -54,6 +57,8 @@ void networkMarkHasInternet(NetIndex_t index) {}
54
57
void networkSequenceBoot (NetIndex_t index) {}
55
58
void networkSequenceNextEntry (NetIndex_t index, bool debug) {}
56
59
void networkUpdate () {}
60
+ void networkUserAdd (NETCONSUMER_t consumer, const char * fileName, uint32_t lineNumber) {}
61
+ void networkUserRemove (NETCONSUMER_t consumer, const char * fileName, uint32_t lineNumber) {}
57
62
void networkValidateIndex (NetIndex_t index) {}
58
63
void networkVerifyTables () {}
59
64
@@ -83,30 +88,30 @@ bool ntripServerIsCasting(int serverIndex) {
83
88
// TCP client
84
89
// ----------------------------------------
85
90
91
+ void tcpClientDiscardBytes (RING_BUFFER_OFFSET previousTail, RING_BUFFER_OFFSET newTail) {}
86
92
int32_t tcpClientSendData (uint16_t dataHead) {return 0 ;}
87
93
void tcpClientUpdate () {}
88
94
void tcpClientValidateTables () {}
89
95
void tcpClientZeroTail () {}
90
- void discardTcpClientBytes (RING_BUFFER_OFFSET previousTail, RING_BUFFER_OFFSET newTail) {}
91
96
92
97
// ----------------------------------------
93
98
// TCP server
94
99
// ----------------------------------------
95
100
101
+ void tcpServerDiscardBytes (RING_BUFFER_OFFSET previousTail, RING_BUFFER_OFFSET newTail) {}
96
102
int32_t tcpServerSendData (uint16_t dataHead) {return 0 ;}
97
103
void tcpServerZeroTail () {}
98
104
void tcpServerValidateTables () {}
99
- void discardTcpServerBytes (RING_BUFFER_OFFSET previousTail, RING_BUFFER_OFFSET newTail) {}
100
105
101
106
// ----------------------------------------
102
107
// UDP server
103
108
// ----------------------------------------
104
109
110
+ void udpServerDiscardBytes (RING_BUFFER_OFFSET previousTail, RING_BUFFER_OFFSET newTail) {}
105
111
int32_t udpServerSendData (uint16_t dataHead) {return 0 ;}
106
112
void udpServerStop () {}
107
113
void udpServerUpdate () {}
108
114
void udpServerZeroTail () {}
109
- void discardUdpServerBytes (RING_BUFFER_OFFSET previousTail, RING_BUFFER_OFFSET newTail) {}
110
115
111
116
#endif // COMPILE_NETWORK
112
117
@@ -117,7 +122,9 @@ void discardUdpServerBytes(RING_BUFFER_OFFSET previousTail, RING_BUFFER_OFFSET n
117
122
#ifndef COMPILE_OTA_AUTO
118
123
119
124
void otaAutoUpdate () {}
120
- bool otaNeedsNetwork () {return false ;}
125
+ bool otaCheckVersion (char *versionAvailable, uint8_t versionAvailableLength) {return false ;}
126
+ void otaMenuDisplay (char * currentVersion) {}
127
+ bool otaMenuProcessInput (byte incoming) {return false ;}
121
128
void otaUpdate () {}
122
129
void otaUpdateStop () {}
123
130
void otaVerifyTables () {}
@@ -131,9 +138,9 @@ void otaVerifyTables() {}
131
138
#ifndef COMPILE_MQTT_CLIENT
132
139
133
140
bool mqttClientIsConnected () {return false ;}
134
- bool mqttClientNeedsNetwork () {return false ;}
135
141
void mqttClientPrintStatus () {}
136
142
void mqttClientRestart () {}
143
+ void mqttClientStartEnabled () {}
137
144
void mqttClientUpdate () {}
138
145
void mqttClientValidateTables () {}
139
146
@@ -165,7 +172,6 @@ bool webServerStart(int httpPort = 80)
165
172
bool parseIncomingSettings () {return false ;}
166
173
void sendStringToWebsocket (const char * stringToSend) {}
167
174
void stopWebServer () {}
168
- bool webServerNeedsNetwork () {return false ;}
169
175
void webServerStop () {}
170
176
void webServerUpdate () {}
171
177
void webServerVerifyTables () {}
@@ -178,18 +184,17 @@ void webServerVerifyTables() {}
178
184
179
185
#ifndef COMPILE_ESPNOW
180
186
181
- bool espnowGetState () {return ESPNOW_OFF;}
182
- bool espnowIsPaired () {return false ;}
183
- void espnowProcessRTCM (byte incoming) {}
184
- esp_err_t espnowRemovePeer ( uint8_t *peerMac ) {return ESP_OK ;}
185
- esp_err_t espnowSendPairMessage ( uint8_t *sendToMac) {return ESP_OK;}
186
- bool espnowSetChannel ( uint8_t channelNumber) {return false ;}
187
- bool espNowStart () {return false ;}
188
- # define ESPNOW_START () false
189
- void espnowStaticPairing () {}
187
+ bool espNowGetState () {return ESPNOW_OFF;}
188
+ bool espNowIsPaired () {return false ;}
189
+ void espNowProcessRTCM (byte incoming) {}
190
+ bool espNowProcessRxPairedMessage ( ) {return true ;}
191
+ esp_err_t espNowRemovePeer ( const uint8_t *peerMac) {return ESP_OK;}
192
+ esp_err_t espNowSendPairMessage ( const uint8_t *sendToMac) {return ESP_OK ;}
193
+ bool espNowSetChannel ( uint8_t channelNumber) {return false ;}
194
+ bool espNowStart () { return true ;}
195
+ void espNowStaticPairing () {}
190
196
bool espNowStop () {return true ;}
191
- #define ESPNOW_STOP () true
192
- void updateEspnow () {}
197
+ void espNowUpdate () {}
193
198
194
199
#endif // COMPILE_ESPNOW
195
200
@@ -199,19 +204,22 @@ void updateEspnow() {}
199
204
200
205
#ifndef COMPILE_WIFI
201
206
202
- void menuWiFi () {systemPrintln (" **WiFi not compiled**" );}
203
- bool wifiApIsRunning () {return false ;}
204
- bool wifiConnect (bool startWiFiStation, bool startWiFiAP, unsigned long timeout) {return false ;}
205
- uint32_t wifiGetStartTimeout () {return 0 ;}
206
- #define WIFI_IS_RUNNING () 0
207
- int wifiNetworkCount () {return 0 ;}
208
- void wifiResetThrottleTimeout () {}
209
- void wifiResetTimeout () {}
210
- #define WIFI_SOFT_AP_RUNNING () false
211
- bool wifiStart () {return false ;}
212
- bool wifiStationIsRunning () {return false ;}
213
- #define WIFI_STOP () {}
214
- bool wifiUnavailable () {return true ;}
207
+ void menuWiFi () {systemPrintln (" **WiFi not compiled**" );}
208
+ void wifiDisplayNetworkData () {}
209
+ void wifiDisplaySoftApStatus () {}
210
+ bool wifiEspNowOff (const char * fileName, uint32_t lineNumber) {return true ;}
211
+ bool wifiEspNowOn (const char * fileName, uint32_t lineNumber) {return false ;}
212
+ void wifiEspNowSetChannel (WIFI_CHANNEL_t channel) {}
213
+ uint32_t wifiGetStartTimeout () {return 0 ;}
214
+ int wifiNetworkCount () {return 0 ;}
215
+ void wifiResetThrottleTimeout () {}
216
+ void wifiResetTimeout () {}
217
+ const char * wifiSoftApGetSsid () {return " " ;}
218
+ bool wifiSoftApOff (const char * fileName, uint32_t lineNumber) {return true ;}
219
+ bool wifiSoftApOn (const char * fileName, uint32_t lineNumber) {return false ;}
220
+ bool wifiStationOff (const char * fileName, uint32_t lineNumber) {return true ;}
221
+ bool wifiStationOn (const char * fileName, uint32_t lineNumber) {return false ;}
222
+ void wifiStopAll () {}
215
223
216
224
#endif // COMPILE_WIFI
217
225
0 commit comments