Page 1 of 1

Documentation ?

Posted: 30 Nov 2019, 00:41
by uxhamby
Does the information, to do with publishing system variables, under the "Report IP every 30 seconds using MQTT" heading in the document at: ... using-mqtt

Apply to ESPEASY version mega-20180809 ?

Re: Documentation ?

Posted: 30 Nov 2019, 01:07
by TD-er
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
 timerSet,1,30      //Set Timer 1 for the next event in 30 seconds

On Rules#Timer=1 do  //When Timer1 expires, do
 timerSet,1,30       //Resets the Timer 1 for another 30 seconds