Heat pump monitor ESP8266 problem

How did you do it? what subnet mask and gateway?

If a phone did you disable mobile data?

subnet mask and gateway
All guesswork of course!

Yes, mobile data turned off on the phone, I saw that advice in the instructions (although I am on iPhone not Android).


Did you do this with PlatformIO or Arduino?


@glyn.hudson Can you help?

Trawling the community - possible thing to try Cannot access WiFi AP after uploading from VSCode/PIO

I did read that as well. Mine doesn’t look like it’s crashing (not resetting anyway). But in any case I don’t know what [email protected] is or where it lives - it’s not in the library manager or referenced in any source file as far as I can see.

1 Like

Me neither :grinning:.

1 Like

Thinking about buying a pre-flashed ESP board, de-soldering the module and fitting it to the heat pump monitor board.

According to this thread: ESP continually resetting. Any ideas? - the “correct” esp8266 board package to use with Arduino is version 2.4.2. I was using the latest, which is 2.5.2, so I downgraded it. This now doesn’t build, lots of errors as below.

C:\Users\PLC\ArduinoData\packages\esp8266\hardware\esp8266\2.4.2/tools/sdk/lib\libstdc++.a(ios-inst.o): In function `std::basic_ios<char, std::char_traits >::clear(std::_Ios_Iostate)’:

/Users/igrokhotkov/e/ESPTools/crosstool-NG/.build/xtensa-lx106-elf/build/build-cc-gcc-final/xtensa-lx106-elf/libstdc+±v3/include/bits/basic_ios.tcc:122: undefined reference to `std::__throw_ios_failure(char const*)’

C:\Users\PLC\ArduinoData\packages\esp8266\hardware\esp8266\2.4.2/tools/sdk/lib\libstdc++.a(c++locale.o):(.literal.ZNSt6locale5facet18_S_create_c_localeERPiPKcS1+0x4): undefined reference to `std::__throw_runtime_error(char const*)’

C:\Users\PLC\ArduinoData\packages\esp8266\hardware\esp8266\2.4.2/tools/sdk/lib\libstdc++.a(c++locale.o): In function `std::locale::facet::_S_create_c_locale(int*&, char const*, int*)’:

/Users/igrokhotkov/e/ESPTools/crosstool-NG/.build/xtensa-lx106-elf/build/build-cc-gcc-final/xtensa-lx106-elf/libstdc+±v3/src/c++98/ undefined reference to `std::__throw_runtime_error(char const*)’

collect2.exe: error: ld returned 1 exit status

Hi Evan,
This guide needs updating to make clear the pio method isn’t working at the moment with master branch.

If you’re compiling emonESP master branch use Arduino with ESP 2.4.2 installed from the board manager.
If it’s the timer branch you’re using with the hp monitor then compile with pio.

I’ve never seen those errors before! Looks like a windows thing. Which version of Arduino is it? Might be worth trying to uninstall and install again the IDE or the ESP board package.

If using Arduino there are a few libraries to download also. Have you tracked them down?

The 1.8.0 thing referenced above is just PIO’s version scheme for the esp core, it actually uses ESP core 2.4.2 within it. If you’re compiling master using pio and [email protected] is used, it should theoretically work the same as arduino compiling with esp8266 2.4.2 from the board manager.

Hi Dan thanks for the help.

This guide needs updating to make clear the pio method isn’t working at the moment with master branch.

OK, I’m not, but I volunteer to edit the instructions to say that, if (and it’s a big if) I ever get this working!

I’ve re-installed Arduino, bringing it up to the latest version, 1.8.9. I’ve also removed/reinstalled the ESP board package to 2.4.2. Same weird errors. If I change the board package to 2.5.2 it DOES compile but obviously still doesn’t work. Changing back to 2.4.2: errors.

I am using the emonESP main branch, from a couple of days ago.
I did search for and install various libraries, I can see ESP_Async_E1.31, ESPAsyncTCP-master, ESPAsyncWebServer-master and PubSubClient in the libraries directory. I think were some others found via the library manager.

Not sure what ESP_Async_E1.31 is doing there but eveything else looks fine.
How about flashing pre-compiled binaries?
Or do you want to change the code?

The guide does not mention pre-compiled binaries, and I can’t see any binaries in the github…

That’s definitely something that needs updating in that case.

Flashed to the device with with command: --baud 460800 write_flash 0x0 ./bin1.bin 0x300000 ./bin2.bin (358.9 KB)

1 Like

flashing with pre-compiled binaries.


Are the binaries master or timer branch?
They may need explicitly identifying.


I’ve put master in master. I haven’t checked timer as I thought the binaries were already there.

Dan, thank you VERY much, that worked ( write_flash 0x0 src.ino.bin 0x300000 src.spiffs.bin)

So, is it worth updating the guide to instruct loading these pre-built binaries?

If I understand right neither of the two options described to build the source are usable at this time - platformio per your comment above, and also this issue I just noticed on GitHub: “Compile error with Arduino IDE #66” - this is the same thing I am getting.

Noticed, thanks. I’ve updated the guide so am waiting for the PR to be accepted, just need to confirm with Glyn.
ArduinoIDE 1.8.9 I’m using on a Mac.
Added working libraries here: