startup reason mqtt notification

This commit is contained in:
2020-11-28 01:45:57 +01:00
parent 6e6dec8d5f
commit 5fcbf87671
3 changed files with 47 additions and 5 deletions
+18
View File
@@ -0,0 +1,18 @@
#ifndef WAKEUP_REASON_H
#define WAKEUP_REASON_H
#define WAKEUP_REASON_UNDEFINED 0
#define WAKEUP_REASON_TEMP1_CHANGE 2
#define WAKEUP_REASON_TEMP2_CHANGE 3
#define WAKEUP_REASON_BATTERY_CHANGE 4
#define WAKEUP_REASON_SOLAR_CHANGE 5
#define WAKEUP_REASON_RTC_MISSING 6
#define WAKEUP_REASON_TIME_UNSET 7
#define WAKEUP_REASON_MODE2_WAKEUP_TIMER 8
#define WAKEUP_REASON_MOIST_CHANGE 20 //20-26
#define WAKEUP_REASON_PLANT_DRY 30 //30-36
#endif