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 ?
Documentation ?
Moderators: grovkillen, Stuntteam, TD-er
Re: Documentation ?
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:
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
Who is online
Users browsing this forum: No registered users and 33 guests