Fix compile error esp8266 boards

This commit is contained in:
samuelbles07
2025-03-26 21:38:21 +07:00
parent 429adb5e5e
commit 9291598209
4 changed files with 5 additions and 4 deletions

View File

@ -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();

View File

@ -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 =