Project

General

Profile

Actions

Mqtt » History » Revision 6

« Previous | Revision 6/7 (diff) | Next »
Frédéric Blanc, 2020-01-17 13:40


Mqtt

Controleur Mqtt

Controller Subscribe:


%sysname%/+/+/set

Controller Publish:


%sysname%/%tskname%/%valname%

Controller LWT Topic:


%sysname%/$state

publication directement par le device

Dans le device cocher la case Send to Controller
h2. publication par les règles en json


On System#Boot do    
 Publish fb/%sysname%/IP,%ip%
  timerSet,1,60      
endon

On Rules#Timer=1 do  
 Publish fb/%sysname%/json,'{"rssi":%rssi%,"temp65CF":[temp65CF#Temperature]}'
  timerSet,1,60       
endon

Updated by Frédéric Blanc almost 5 years ago · 7 revisions