changing reboot log
- adding external watchdog - removing wait for ntp (60 seconds) - adding some readme.md information for v0.9.2
This commit is contained in:
parent
eaafaaf107
commit
e4a4d21619
|
@ -216,7 +216,7 @@ String initWatchDog() {
|
|||
if (status & 0x1)
|
||||
{
|
||||
OTGWDebugTln(F("INIT : Reset by WD!"));
|
||||
ReasonReset = "Reset by External WD";
|
||||
ReasonReset = "Reset by External WD\r\n";
|
||||
//lastReset = BOOT_CAUSE_EXT_WD;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -72,8 +72,8 @@ void setup() {
|
|||
setupFSexplorer();
|
||||
startWebserver();
|
||||
startMQTT(); // start the MQTT after webserver, always.
|
||||
|
||||
|
||||
|
||||
initWatchDog(); // setup the WatchDog
|
||||
lastReset = ESP.getResetReason();
|
||||
OTGWSerial.printf("Last reset reason: [%s]\r\n", CSTR(lastReset));
|
||||
rebootCount = updateRebootCount();
|
||||
|
@ -89,7 +89,7 @@ void setup() {
|
|||
checkOTWGpicforupdate();
|
||||
initSensors(); // init DS18B20
|
||||
initOutputs();
|
||||
initWatchDog(); // setup the WatchDog
|
||||
|
||||
WatchDogEnabled(1); // turn on watchdog
|
||||
sendOTGWbootcmd();
|
||||
//Blink LED2 to signal setup done
|
||||
|
|
|
@ -57,6 +57,7 @@ Looking for the documentation, go here (work in progress): <br> https://github.
|
|||
|
||||
| Version | Release notes |
|
||||
|-|-|
|
||||
| 0.9.2 | Bugfix: Alternating values on status bits (thanks @binsentsu)<br>Bugfix: Blue blinking leds of nodemcu should be off using WebUI (thanks @fsfikke)|New feature: Reset wifi button in webUI (thanks @DaveDavenport)<br>Improved: More UI improvements (thanks @rlagerweij)<br>Improved: Serial handling improvements<br>Fixed: Codecleanup (removal of errorprone string functions), removal of potential bufferoverflow, removed all warnings in code compile (thanks @DaveDavenport)<br>Improved: Reboot logging, now includes external watchdog reason.
|
||||
| 0.9.1 | New feature: Added new set commands topics for most OTGW features, read more on the wiki<br>New feature: Reset bootlog to filesystem, for debug purposes<br>Improved: Stability, due to removal of ESP based auto-wifi-reconnect<br>Improved: the OT decoding algoritm, so values on MQTT, REST and WebUI now should be more reliable<br>Added: Override decoding of B and T when followed by A and R of the same MsgID, because this means OTGW overrides messages<br>Improved: No messages on versions when not connected to internet<br>Added: Proper msgid 100: remote override room setpoint flags decoding<br>Added: Missing some msgids to OT decoding|
|
||||
| 0.9.0 | New: Adding time setup commands for Thermostat<br>Fixed: Improved OT status (incl. VH and Solar) message decoding<br>Fixed: Statusbit decoding in webUI<br>Improved: Better wifi auto-reconnect (ESP based)<BR>Improved: Wifi reconnection logic, reboot if 15 min not connected<br>New: NTP hostname setting in webUI<br>Changed: removed ezTime NTP library, moved to ConfigTime NTP and AceTime|
|
||||
| 0.8.6 | Improving wifi reconnect (without reboot)<br>Fix: Double definition to a HA sensor<br>Adding: OEMDiagnosticCode topic to HA Discovery<br>Bugfix: UI now labels OEM DiagnosticCode correctly, and added the real OEM Fault code|
|
||||
|
|
|
@ -212,7 +212,7 @@ bool updateRebootLog(String text)
|
|||
char log_line_excpt[LOG_LINE_LENGTH] = {0};
|
||||
uint32_t errorCode = -1;
|
||||
|
||||
waitforNTPsync();
|
||||
//waitforNTPsync();
|
||||
|
||||
struct rst_info *rtc_info = system_get_rst_info();
|
||||
|
||||
|
@ -239,6 +239,12 @@ bool updateRebootLog(String text)
|
|||
Debugf(log_line_regs);
|
||||
}
|
||||
|
||||
if (rtc_info->reason == REASON_EXT_SYS_RST) {
|
||||
//external reset, so try to fetch the reset reason from the tiny watchdog and print that
|
||||
snprintf(log_line_regs, LOG_LINE_LENGTH,"External Reason: External Watchdog reason: %s\r\n", CSTR(initWatchDog()));
|
||||
Debugf(log_line_regs);
|
||||
}
|
||||
|
||||
if (rtc_info->reason == REASON_EXCEPTION_RST) {
|
||||
|
||||
// Fatal exception No. Description Possible Causes
|
||||
|
|
18
version.h
18
version.h
|
@ -2,15 +2,15 @@
|
|||
#define _VERSION_MAJOR 0
|
||||
#define _VERSION_MINOR 9
|
||||
#define _VERSION_PATCH 2
|
||||
#define _VERSION_BUILD 1545
|
||||
#define _VERSION_GITHASH "491dd26"
|
||||
#define _VERSION_BUILD 1548
|
||||
#define _VERSION_GITHASH "eaafaaf"
|
||||
#define _VERSION_PRERELEASE beta
|
||||
#define _VERSION_DATE "02-01-2022"
|
||||
#define _VERSION_TIME "17:46:00"
|
||||
#define _VERSION_DATE "03-01-2022"
|
||||
#define _VERSION_TIME "21:12:35"
|
||||
#define _SEMVER_CORE "0.9.2"
|
||||
#define _SEMVER_BUILD "0.9.2+1545"
|
||||
#define _SEMVER_GITHASH "0.9.2+491dd26"
|
||||
#define _SEMVER_FULL "0.9.2-beta+491dd26"
|
||||
#define _SEMVER_NOBUILD "0.9.2-beta (02-01-2022)"
|
||||
#define _VERSION "0.9.2-beta+491dd26 (02-01-2022)"
|
||||
#define _SEMVER_BUILD "0.9.2+1548"
|
||||
#define _SEMVER_GITHASH "0.9.2+eaafaaf"
|
||||
#define _SEMVER_FULL "0.9.2-beta+eaafaaf"
|
||||
#define _SEMVER_NOBUILD "0.9.2-beta (03-01-2022)"
|
||||
#define _VERSION "0.9.2-beta+eaafaaf (03-01-2022)"
|
||||
//The version information is created automatically, more information here: https://github.com/rvdbreemen/autoinc-semver
|
||||
|
|
Loading…
Reference in New Issue