mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-29 08:27:17 +02:00
Fix compile error esp8266 boards
This commit is contained in:
@ -551,7 +551,7 @@ void checkForFirmwareUpdate(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
agOta->setHandlerCallback(otaHandlerCallback);
|
agOta->setHandlerCallback(otaHandlerCallback);
|
||||||
agOta->updateIfAvailable(ag->getDeviceId(), GIT_VERSION);
|
agOta->updateIfAvailable(ag->deviceId().c_str(), GIT_VERSION);
|
||||||
|
|
||||||
// Only goes to this line if OTA is not success
|
// Only goes to this line if OTA is not success
|
||||||
// Handled by otaHandlerCallback
|
// Handled by otaHandlerCallback
|
||||||
@ -941,7 +941,7 @@ void initializeNetwork() {
|
|||||||
networkOption = UseWifi;
|
networkOption = UseWifi;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!agClient->begin(ag->getDeviceId())) {
|
if (!agClient->begin(ag->deviceId().c_str())) {
|
||||||
oledDisplay.setText("Client", "initialization", "failed");
|
oledDisplay.setText("Client", "initialization", "failed");
|
||||||
delay(5000);
|
delay(5000);
|
||||||
oledDisplay.showRebooting();
|
oledDisplay.showRebooting();
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
#define GIT_VERSION "3.2.0-snap"
|
#define GIT_VERSION "3.2.0-snap"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifndef ESP8266
|
#ifndef ESP8266
|
||||||
// Airgradient server root ca certificate
|
// Airgradient server root ca certificate
|
||||||
const char *const AG_SERVER_ROOT_CA =
|
const char *const AG_SERVER_ROOT_CA =
|
||||||
|
Submodule src/Libraries/airgradient-client updated: 9e8a38a203...b76bb9635b
Submodule src/Libraries/airgradient-ota updated: 3dcf4b0325...24d2dc537c
Reference in New Issue
Block a user