File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -153,8 +153,8 @@ void httpClientPrintStateSummary()
153
153
// Print the HTTP Client status
154
154
void httpClientPrintStatus ()
155
155
{
156
- systemPrint (" MQTT Client " );
157
- mqttClientPrintStateSummary ();
156
+ systemPrint (" HTTP Client " );
157
+ httpClientPrintStateSummary ();
158
158
}
159
159
160
160
// Restart the HTTP client
@@ -285,8 +285,11 @@ void httpClientUpdate()
285
285
286
286
// Start the network
287
287
case HTTP_CLIENT_ON: {
288
- if (networkUserOpen (NETWORK_USER_HTTP_CLIENT, NETWORK_TYPE_ACTIVE))
289
- httpClientSetState (HTTP_CLIENT_NETWORK_STARTED);
288
+ if ((millis () - httpClientTimer) > httpClientConnectionAttemptTimeout)
289
+ {
290
+ if (networkUserOpen (NETWORK_USER_HTTP_CLIENT, NETWORK_TYPE_ACTIVE))
291
+ httpClientSetState (HTTP_CLIENT_NETWORK_STARTED);
292
+ }
290
293
break ;
291
294
}
292
295
You can’t perform that action at this time.
0 commit comments