Difference between revisions of "Tutorial SendTo Publish"

From Let's Control It
Jump to navigation Jump to search
(Created page with "File:WIP.gif {{Preliminary}} With SendTo you can add a Rule to your ESPEasy, capable of sending an event to another unit. This can be useful in cases where you want t...")
 
(Blanked the page)
 
Line 1: Line 1:
[[File:WIP.gif]]
 
  
 
{{Preliminary}}
 
 
With SendTo you can add a Rule to your ESPEasy, capable of sending an event to another unit.
 
This can be useful in cases where you want to take immediate action.
 
There are two flavors:
 
- SendTo to send remote unit control commands using the internal peer to peer UDP messaging
 
- Publish to send remote commands to other ESP using MQTT broker
 
 
SendTo
 
 
SendTo <unit>,<command>
 
 
on demoEvent do
 
  sendTo 2,GPIO,2,1
 
  sendTo 2,event,givemesomewater
 
endon
 
 
 
Publish
 
 
Publish <topic>,<value>
 

Latest revision as of 17:50, 20 April 2016