Boot reason in rule

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
grhhm
Normal user
Posts: 29
Joined: 23 Oct 2016, 20:15

Boot reason in rule

#1 Post by grhhm » 19 Mar 2018, 20:11

Hi,

In Arduino C it's possible to know a boot reason of ESP8266 with command:
ESP.getResetReason()
The list of boot reasons (what causes boot or reboot)


I want to make a rule which on boot acts differently in dependency of boot reason:
In case of watchdogs or exception it should send MQTT message.
In case of sleep awake it should turn on relay.
In case of normal boot it should turn on LED.

How to read/check boot reason from rule?

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Boot reason in rule

#2 Post by grovkillen » 19 Mar 2018, 20:35

Not possible today, please add a "issue" (aka feature request) on GitHub. :)
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

grhhm
Normal user
Posts: 29
Joined: 23 Oct 2016, 20:15

Re: Boot reason in rule

#3 Post by grhhm » 20 Mar 2018, 21:56


User avatar
vader
Normal user
Posts: 241
Joined: 21 Mar 2017, 17:35

Re: Boot reason in rule

#4 Post by vader » 21 Mar 2018, 00:11

A 5 min job to program.... :mrgreen:

Post Reply

Who is online

Users browsing this forum: No registered users and 30 guests