Skip to content

Commit

Permalink
Release 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lbussy committed Jan 1, 2020
1 parent 63cc5b5 commit edc24ea
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 1 deletion.
Binary file modified firmware/firmware.bin
Binary file not shown.
Binary file modified firmware/flashFirmware_win.exe
Binary file not shown.
Binary file modified firmware/spiffs.bin
Binary file not shown.
2 changes: 1 addition & 1 deletion firmware/version.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version": "0.2.0rc3"}
{"version": "1.0.0"}
1 change: 1 addition & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ lib_deps =
LCBUrl
https://github.com/tzapu/WiFiManager.git#development


[env:d1_mini]
upload_speed = ${common_env_data.upload_speed}
monitor_speed = ${common_env_data.monitor_speed}
Expand Down
10 changes: 10 additions & 0 deletions src/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,16 @@ SOFTWARE. */
//
//////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////
//
// Reboot timer
//
#ifndef REBOOTTIMER
#define REBOOTTIMER 86400
#endif
//
//////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////
//
// Default Bubble name
Expand Down
8 changes: 8 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,14 @@ void loop() {
}
});

// Reboot timer - I wish controllers could be counted on to be more
// stable but at least it only takes a few seconds.
Ticker rebootTimer;
rebootTimer.attach(REBOOTTIMER, [](){
Log.notice(F("Reboot timer - rebooting system."));
ESP.restart();
});

while (true) {

// Handle JSON posts
Expand Down

0 comments on commit edc24ea

Please sign in to comment.