ahoy
ahoy copied to clipboard
ESP8266: ESP.getResetInfo() statt ESP.getResetReason() verwenden
Platform
ESP8266
Assembly
I did the assebly by myself
nRF24L01+ Module
square dot
Antenna
circuit board
Power Stabilization
Elko (~100uF)
Connection picture
- [ ] I will attach/upload an Image of my wiring
Version
0.8.84
Github Hash
f500999
Build & Flash Method
AhoyDTU Webinstaller
Setup
- MqTT running
Debug Serial Log output
No response
Error description
Könnte man bei der Ausgabe der ESP8266 System Information nicht ESP.getResetInfo() statt ESP.getResetReason() verwenden (RestApi.h)?
Vorteil: man bekommt in den Fehlerfällen "Hardware Watchdog", "Exception" und "Software Watchdog" etwas mehr Info bzgl. des Fehlers. Insbesondere die Exception Causes (EXCCAUSE). Nachteile: statt eines const Buffers werden am Heap 200 Byte für die Erzeugung des Strings gebraucht und die Ausgabe ist entsprechend breiter.
Auszug aus Esp.cpp: sprintf_P(buff, PSTR("Fatal exception:%d flag:%d (%s) epc1:0x%08x epc2:0x%08x epc3:0x%08x excvaddr:0x%08x depc:0x%08x"), resetInfo.exccause, resetInfo.reason, getResetReason().c_str(), resetInfo.epc1, resetInfo.epc2, resetInfo.epc3, resetInfo.excvaddr, resetInfo.depc);