Expandable-6-Channel-ESP32-Energy-Meter icon indicating copy to clipboard operation
Expandable-6-Channel-ESP32-Energy-Meter copied to clipboard

Platformio Build for emonesp-nodemcu32s fails; two reasons

Open ajw685 opened this issue 1 year ago • 2 comments

when building in VSCode straight after downloading the repository and opening in platformio, when running Build All I get this error in emonesp-nodemcu32s,:

src/config.cpp:60:32: error: array must be initialized with a brace-enclosed initializer String ct_name[NUM_CHANNELS] = "";

changing from String ct_name[NUM_CHANNELS] = "";

to

String ct_name[NUM_CHANNELS] = {""};

resolves this first issue but then,

It seems there have been changes with the Async library that is causing build problems

looks like lib_deps needs t be updated with https://github.com/me-no-dev/ESPAsyncWebServer.git

i can't get it to build consistently, but do have emonesp running on the board

ajw685 avatar Feb 25 '23 16:02 ajw685

I am having the same issues. changes from String ct_name[NUM_CHANNELS] = ""; to String ct_name[NUM_CHANNELS] = {""};

When I now compile I get the following error and dont know how to proceed:

collect2.exe: error: ld returned 1 exit status *** [.pio\build\emonesp-nodemcu32s\firmware.elf] Error 1

Any ideas please?

DougKennaugh avatar Jul 20 '23 11:07 DougKennaugh

I had same issue. Is any one can help please?

Kt527 avatar Oct 22 '23 21:10 Kt527