Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Platformio Build for emonesp-nodemcu32s fails; two reasons #132

Open
ajw685 opened this issue Feb 25, 2023 · 2 comments
Open

Platformio Build for emonesp-nodemcu32s fails; two reasons #132

ajw685 opened this issue Feb 25, 2023 · 2 comments

Comments

@ajw685
Copy link

ajw685 commented Feb 25, 2023

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

@DougKennaugh
Copy link

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?

@Kt527
Copy link

Kt527 commented Oct 22, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants