Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Me No Dev
@me-no-dev
@brutzler it will reconnect automatically
Mario Mikočević
@mozgy
I have several NodeMCU hw, all works fine with sensors (DHT11/22, DS18B20)
Me No Dev
@me-no-dev
@skorokithakis code looks fine
d-anders
@d-anders
@skorokithakis didnt really see anything strange in your code
Me No Dev
@me-no-dev
maybe mqtt giving you headaches?
Stavros Korokithakis
@skorokithakis
@me-no-dev it is, but it's also crashing without mqtt (i removed it from the code)
d-anders
@d-anders
when does it crash and can you remove code to avoid it?
Stavros Korokithakis
@skorokithakis
sometimes it crashes on startup, sometimes it works for minutes, sometimes it crashes after a few seconds
completely random
brutzler
@brutzler
How do you ensure, that the ESP is still working proper?
I want to setup a little 24/7 controller for my warmwater-heating. And this "PLC" should not stop working.
Is there a need/possibility for a watchdog to reset the ESP in case of hanging? And how to recognize this?
d-anders
@d-anders
it crashed even if you comment out everything in your loop?
Me No Dev
@me-no-dev
@skorokithakis you said you use nodemcu. Any chance something is wrong with the power to it?
power spikes can reseti it easily
Stavros Korokithakis
@skorokithakis
i'm powering it from the computer's USB, as i want to be able to read the serial. i don't know if the computer's power supply is that unstable, it's a macbook plugged in to the wall
Me No Dev
@me-no-dev
it should be fine then
Mario Mikočević
@mozgy
try this example DHT and OTA
Me No Dev
@me-no-dev
given that the cable is OK
Stavros Korokithakis
@skorokithakis
hmmm
i should try another cable
d-anders
@d-anders
do you have any hardware connected to nodemcu board?
Stavros Korokithakis
@skorokithakis
@d-anders, some sensors
@mozgy what does that code do?
Mario Mikočević
@mozgy
nodemcu boards are working on 3.0V
reading DHT sensor and posting data on web
d-anders
@d-anders
seperate power supply for those or are you using the usb?
Mario Mikočević
@mozgy
so those 3.0V might not be enough juice
d-anders
@d-anders
maybe try disconnecting the wires and see if it will stop the crashes
Stavros Korokithakis
@skorokithakis
@d-anders i had done that and it kept crashing, but i'll try again
the iot-OTA thing can't find ArduinoOTA.h, where can i find that?
Mario Mikočević
@mozgy
staging release
tho I ment to check WiFi related code, I had problems when I had code very similar like yours
Stavros Korokithakis
@skorokithakis
oh, what was the solution?
Mario Mikočević
@mozgy
then igrr posted an example and I based my code on his
a bit different check loop
Stavros Korokithakis
@skorokithakis
ah
okay, i've changed cables, unplugged all the sensors and used the different wifi code
let's see
Stavros Korokithakis
@skorokithakis
hmm, gcc complains on the empty WiFi.begin();
says it needs to accept parameters
Me No Dev
@me-no-dev
do not use empty...
I saw it in example sketches and leads to lots of connection problems
Stavros Korokithakis
@skorokithakis
well, changing the nodemcu, cable and code seems to have worked
let me try the old nodemcu with the new code and cable
by the way, do i need to do anything special to flash the firmware? i'm using platformio which generates a firmware.elf and flashes it with esptool
i mean do i need to do an initial flash of the arduino firmware or something?
Me No Dev
@me-no-dev
no
Stavros Korokithakis
@skorokithakis
thanks
Me No Dev
@me-no-dev
it replaces what's on the flash anyways
Stavros Korokithakis
@skorokithakis
right, i thought so
brutzler
@brutzler
@all: may I ask again:
How do you ensure, that the ESP is still working proper?
I want to setup a little 24/7 controller for my warmwater-heating. And this "PLC" should not stop working.
Is there a need/possibility for a watchdog to reset the ESP in case of hanging? And how to recognize this?