added reset on boot of the OTGW

This commit is contained in:
Robert van den Breemen 2021-01-18 21:53:53 +01:00
parent 04e55d69ba
commit 7fa10b40f2
4 changed files with 20 additions and 9 deletions

View File

@ -46,6 +46,16 @@
OpenthermData OTdata;
DECLARE_TIMER_MS(timerWD, 1000, CATCH_UP_MISSED_TICKS);
//===================[ Reset OTGW ]===============================
void resetOTGW() {
//lower the right pin for just 500ms and the OTGW is reset
pinMode(14, OUTPUT);
digitalWrite(14, LOW);
delay(500);
digitalWrite(14, HIGH);
pinMode(14, INPUT_PULLUP);
}
//===================[ Watchdog OTGW ]===============================
String initWatchDog() {
// configure hardware pins according to eeprom settings.

View File

@ -126,8 +126,9 @@ void setup()
sprintf(cMsg, "%03d.%03d.%d.%d", WiFi.localIP()[0], WiFi.localIP()[1], WiFi.localIP()[2], WiFi.localIP()[3]);
Serial.printf("\nAssigned IP[%s]\r\n", cMsg);
resetOTGW(); // reset the OTGW pic
initWatchDog(); // setup the WatchDog
startOTGWstream();
startOTGWstream(); // start port 1023
Serial.printf("Reboot count = [%d]\r\n", rebootCount);
Serial.println(F("Setup finished!"));

View File

@ -30,7 +30,7 @@ Looking for the documentation, go here (work in progress): <br> https://github.
| Version | Release notes |
|-|-|
| 0.6.2 | Translate dutch to english |
| 0.6.2 | Added OTGW pic reset on bootup.<br> Translate dutch to english. |
| 0.6.1 | Bugfix: setting page did not always work correctly, now it does. |
| 0.6.0 | Standalone UI for simple OT monitor purposes and deviceinformation, moved index.html to SPIFF <br>OTA is possible after flashing 0.6.0 (Hardware watchdog is fed, during flash uploads now) |
| 0.5.1 | REST APIs, v1, for OTmonitor values, GetByLabel, GetByID, POST otgw/command/{command} |

View File

@ -2,13 +2,13 @@
#define _VERSION_MAJOR 0
#define _VERSION_MINOR 6
#define _VERSION_PATCH 1
#define _VERSION_BUILD 410
#define _VERSION_BUILD 413
//#define _VERSION_PRERELEASE beta //uncomment to define prerelease labels: alpha - beta - rc
#define _VERSION_DATE "12-01-2021"
#define _VERSION_TIME "21:13:36"
#define _VERSION_DATE "18-01-2021"
#define _VERSION_TIME "21:48:01"
#define _SEMVER_CORE "0.6.1"
#define _SEMVER_BUILD "0.6.1+410"
#define _SEMVER_FULL "0.6.1+410"
#define _SEMVER_NOBUILD "0.6.1 (12-01-2021)"
#define _VERSION "0.6.1+410 (12-01-2021)"
#define _SEMVER_BUILD "0.6.1+413"
#define _SEMVER_FULL "0.6.1+413"
#define _SEMVER_NOBUILD "0.6.1 (18-01-2021)"
#define _VERSION "0.6.1+413 (18-01-2021)"
//The version information is created automatically, more information here: https://github.com/rvdbreemen/autoinc-semver