mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-29 08:27:17 +02:00
Update diy samples
That accomodate ApiClient changes Fix apiClient begin on OneOpenAir
This commit is contained in:
@ -861,7 +861,7 @@ void initiateNetwork() {
|
||||
// Initiate local network configuration
|
||||
mdnsInit();
|
||||
localServer.begin();
|
||||
// Apply mqtt connection
|
||||
// Apply mqtt connection if configured
|
||||
initMqtt();
|
||||
|
||||
// Ignore the rest if cloud connection to AirGradient is disabled
|
||||
@ -869,7 +869,10 @@ void initiateNetwork() {
|
||||
return;
|
||||
}
|
||||
|
||||
// Send ping to aigradient server
|
||||
// Initialize api client
|
||||
apiClient.begin();
|
||||
|
||||
// Send ping to airgradient server
|
||||
sendDataToAg();
|
||||
|
||||
// OTA check
|
||||
|
Reference in New Issue
Block a user