Split-Single-Phase-Energy-Meter icon indicating copy to clipboard operation
Split-Single-Phase-Energy-Meter copied to clipboard

'WiFi' was not declared in this scope

Open RobertSchuster opened this issue 1 year ago • 7 comments

Compiling with Arduino IDE failes with 'WiFi' was not declared in this scope

See attached file. compile Error.txt

Arduino IDE and all libraries are up2date. Any ideas?

RobertSchuster avatar Dec 26 '24 11:12 RobertSchuster

I read somewhere about changing something in the file concerning HTTP. Somewhere in the file HTTP needs to change to be changed to utilize Wi-Fi. I read this from a collaborator and I will try to find it and let you know.

ptownhippie avatar Jan 25 '25 17:01 ptownhippie

Same here.

bdokimakis avatar May 28 '25 19:05 bdokimakis

Please try using this build of EmonESP: https://github.com/CircuitSetup/EmonESP

CircuitSetup avatar May 29 '25 13:05 CircuitSetup

Compiling with Arduino IDE 2.3.6 gives the following error:

In file included from C:\Users\bdoki\Downloads\EmonESP-master\EmonESP-master\src\emonesp.h:31, from C:\Users\bdoki\Downloads\EmonESP-master\EmonESP-master\src\src.ino:30: C:\Users\bdoki\Downloads\EmonESP-master\EmonESP-master\src\debug.h:7:10: fatal error: MicroDebug.h: No such file or directory 7 | #include "MicroDebug.h" | ^~~~~~~~~~~~~~ compilation terminated. exit status 1

Compilation error: MicroDebug.h: No such file or directory

bdokimakis avatar May 29 '25 14:05 bdokimakis

Yes, that is a library that needs to be installed, along with others listed in the platformio file

CircuitSetup avatar May 29 '25 15:05 CircuitSetup

I've installed all the libraries that are mentioned in https://github.com/CircuitSetup/EmonESP/blob/master/platformio.ini and could be found via the Library Manager of the Arduino IDE. Micro Debug@^0.0.4 was not among them. Only this https://github.com/rlogiacco/MicroDebug is available and doesn't resolve the problem I mentioned above.

Could you provide a thorough installation guide for Arduino IDE?

bdokimakis avatar May 29 '25 15:05 bdokimakis

I've installed all the libraries that are mentioned in https://github.com/CircuitSetup/EmonESP/blob/master/platformio.ini and could be found via the Library Manager of the Arduino IDE. Micro Debug@^0.0.4 was not among them.

This is the library needed: https://github.com/jeremypoulter/MicroDebug There are also some others written by Jeremy: https://github.com/jeremypoulter/StreamSpy https://github.com/jeremypoulter/ESPAL https://github.com/jeremypoulter/ConfigJson

CircuitSetup avatar Jun 02 '25 17:06 CircuitSetup