CircuitSetup / Expandable-6-Channel-ESP32-Energy-Meter

Hardware & Software documentation for the CircuitSetup Expandable 6 Channel ESP32 Energy Meter. Works with ESPHome and Home Assistant.
https://circuitsetup.us/product/expandable-6-channel-esp32-energy-meter/
MIT License
519 stars 104 forks source link

Issue with <esp_task_wdt.h> and a Wifi Redeclaration #18

Open errolsancaktar opened 3 years ago

errolsancaktar commented 3 years ago

Just pulled newest version and trying to build via platformio. getting an error that it cant find which doesnt make sense since its part of arduino-esp32. It appears to be looking for the feedLoopWDT which i dont see declared anywhere: src/http.cpp:78:19: error: 'feedLoopWDT' was not declared in this scope Also getting two other interesting issues that dont seem to make sense.

src/http.cpp:59:51: error: no matching function for call to 'BearSSL::WiFiClientSecure::connect(const char*&, int&, int)'

CircuitSetup commented 3 years ago

I just updated the platformio.ini file and got everything to build (along with some other improvements). I'm not quite sure why this was happening.

You can ignore the warnings that are output while building.

errolsancaktar commented 3 years ago

That did work for me as well however now i have no mqtt. shows connected yes for a couple seconds then switches back to no,. nothing posts to mqtt.

errolsancaktar commented 3 years ago

Also is there any logging methodology over the network?

CircuitSetup commented 3 years ago

@errolsancaktar did you update spiffs as well? There is a new setting for json based mqtt that may need to be set.

CircuitSetup commented 3 years ago

As far as logging, I was thinking of putting in some kind of virtual terminal so you can see what is going on remotely. Would that work?

errolsancaktar commented 3 years ago

Yeah that would be super helpful. If you want help with a pr lemme know. Also I'm guessing no way to upload spiffs without pulling from breaker panel?

CircuitSetup commented 3 years ago

You should be able to upload the spiffs.bin via the web interface.

I'm working on getting a debug output in the interface.

errolsancaktar commented 3 years ago

i'm getting an 'update FAIL' when i try to upload spiffs.bin. is there another step i should take?

CircuitSetup commented 3 years ago

how was the spiffs.bin compiled?

I'm still working on the debug output.

errolsancaktar commented 3 years ago

Just through platformio no changes to code base

CircuitSetup commented 3 years ago

@errolsancaktar did you ever figure out what was wrong with this? Updating the 6 channel code has been stalled lately.