Fixed 8266 build

This commit is contained in:
Gunnar Skjold
2024-01-06 19:11:22 +01:00
parent 48ab87ba50
commit b951fe9099
3 changed files with 6 additions and 3 deletions

View File

@@ -9,7 +9,9 @@
#include "crc.h"
#include "Uptime.h"
#include "hexutils.h"
#if defined(ESP32)
#include <ESPRandom.h>
#endif
CloudConnector::CloudConnector(RemoteDebug* debugger) {
this->debugger = debugger;
@@ -36,11 +38,13 @@ CloudConnector::CloudConnector(RemoteDebug* debugger) {
bool CloudConnector::setup(CloudConfig& config, MeterConfig& meter, HwTools* hw) {
bool ret = false;
#if defined(ESP32)
if(!ESPRandom::isValidV4Uuid(config.clientId)) {
ESPRandom::uuid4(config.clientId);
ret = true;
}
uuid = ESPRandom::uuidToString(config.clientId);
#endif
this->config = config;
this->hw = hw;

View File

@@ -39,7 +39,6 @@
#include "html/conf_ui_json.h"
#include "html/conf_cloud_json.h"
#include "html/firmware_html.h"
#include <ESPRandom.h>
#if defined(ESP32)
#include <esp_task_wdt.h>