Documentation ?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
User avatar
uxhamby
Normal user
Posts: 44
Joined: 29 Dec 2016, 18:13
Location: Toronto Canada

Documentation ?

#1 Post by uxhamby » 30 Nov 2019, 00:41

Does the information, to do with publishing system variables, under the "Report IP every 30 seconds using MQTT" heading in the document at:

https://espeasy.readthedocs.io/en/lates ... using-mqtt

Apply to ESPEASY version mega-20180809 ?

TD-er
Core team member
Posts: 1922
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Documentation ?

#2 Post by TD-er » 30 Nov 2019, 01:07

I'm not sure whether those system variables already existed back then and if they were already available it is possible those were not parsed everywhere like they are now.

Just to keep the information a bit together (and to keep a copy of that rules example for reference here), this is the code linked in the opening post:

Code: Select all

On System#Boot do    //When the ESP boots, do
 Publish,%sysname%/IP,%ip%
 timerSet,1,30      //Set Timer 1 for the next event in 30 seconds
endon

On Rules#Timer=1 do  //When Timer1 expires, do
 Publish,%sysname%/IP,%ip%
 timerSet,1,30       //Resets the Timer 1 for another 30 seconds
endon

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests