9
0
mirror of https://github.com/Lomanic/presence-button synced 2024-11-21 21:07:30 +00:00

Save crash details to EEPROM with EspSaveCrash as previous commit didn't fix this issue

This commit is contained in:
Lomanic 2019-11-30 23:32:57 +01:00
parent b7ec6df8ec
commit 4e9a9a44c5
2 changed files with 10 additions and 3 deletions

View File

@ -6,7 +6,8 @@ More info on [Fuz wiki](https://wiki.fuz.re/doku.php?id=projets:fuz:presence_but
## Dependencies ## Dependencies
Developped with the Arduino IDE, the script relies on the following third-party libraries: Developed with the Arduino IDE, the script relies on the following third-party libraries:
* https://arduinojson.org/ v6 * https://arduinojson.org/ v6 6.13.0
* https://github.com/tzapu/WiFiManager * https://github.com/tzapu/WiFiManager 0.15.0-beta
* https://github.com/krzychb/EspSaveCrash 1.0.2

View File

@ -9,6 +9,10 @@
#include <ArduinoJson.h> //https://github.com/bblanchon/ArduinoJson #include <ArduinoJson.h> //https://github.com/bblanchon/ArduinoJson
#include <ESP8266mDNS.h> // https://tttapa.github.io/ESP8266/Chap08%20-%20mDNS.html #include <ESP8266mDNS.h> // https://tttapa.github.io/ESP8266/Chap08%20-%20mDNS.html
#include "EspSaveCrash.h" //DEBUG https://github.com/krzychb/EspSaveCrash
//EspSaveCrash SaveCrash;
//for LED status //for LED status
#include <Ticker.h> #include <Ticker.h>
Ticker ticker; Ticker ticker;
@ -335,6 +339,8 @@ void setup() {
Serial.begin(115200); Serial.begin(115200);
Serial.println(); Serial.println();
SaveCrash.print(); // DEBUG
//set relay pin as output //set relay pin as output
pinMode(RELAY_PIN, OUTPUT); pinMode(RELAY_PIN, OUTPUT);
//set led pin as output //set led pin as output