Rules inconsistency?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Rules inconsistency?

#1 Post by enesbcs » 16 Mar 2018, 21:45

I'am using the turbocharged 20180311 ESPEasy Mega, which is awesome, but today i experienced some interesting phenomenon.
With global sync enabled, two ESP8266 seeing each other the rulesets are the following:
ESP num 1:

Code: Select all

on bell#Switch do
 if [bell#Switch]>0
  sendto 2,event,pulse_siren2
 endif
endon
ESP num 2:

Code: Select all

on System#Boot do
 event,stop_siren
endon 

on pulse_siren do
pulse,12,1,2500
endon

on pulse_siren2 do
pulse,12,1,2000
endon

on stop_siren do
GPIO,12,0
endon
The above is the working version, if bell#Switch gone to 1 than the "pulse_siren2" event forwarded to the 2nd ESP modul, and pulse works as it has to be.
If I try to change "sendto 2,event,pulse_siren" on the 1st ESP - only one character difference, than the pulse command never executed. If i change it back to "sendto 2,event,pulse_siren2" than it works again. I simply do not understand.
Also sometimes "on bell#Switch>0 do" not works, this is the reason i changed it to "on bell#Switch do" and inserted an if instead.

Post Reply

Who is online

Users browsing this forum: No registered users and 21 guests