2018年12月1日 星期六

Node-Red & MQTT







[{"id":"36b9ac19.468a04","type":"mqtt in","z":"a47b5494.3eb618","name":"","topic":"alex9ufo/led_event","qos":"2","broker":"40bf4d5e.0395f4","x":256,"y":142,"wires":[["b4dc5dae.5e7a5"]]},{"id":"fdce570a.70c9a8","type":"ui_button","z":"a47b5494.3eb618","name":"","group":"e4b1387a.934b88","order":0,"width":0,"height":0,"passthru":false,"label":"On led","color":"white","bgcolor":"","icon":"fa-circle","payload":"1","payloadType":"num","topic":"","x":210,"y":260,"wires":[["cbe61db9.a111f"]]},{"id":"7789eb7e.2785d4","type":"ui_button","z":"a47b5494.3eb618","name":"","group":"e4b1387a.934b88","order":0,"width":0,"height":0,"label":"Off led","color":"black","icon":"fa-circle-o","payload":"0","payloadType":"num","topic":"","x":210,"y":320,"wires":[["cbe61db9.a111f"]]},{"id":"cbe61db9.a111f","type":"mqtt out","z":"a47b5494.3eb618","name":"","topic":"alex9ufo/led_event","qos":"1","retain":"false","broker":"40bf4d5e.0395f4","x":490,"y":300,"wires":[]},{"id":"b4dc5dae.5e7a5","type":"ui_text","z":"a47b5494.3eb618","group":"e4b1387a.934b88","order":0,"width":0,"height":0,"name":"","label":"out","format":"{{msg.payload}}","layout":"col-center","x":530,"y":140,"wires":[]},{"id":"40bf4d5e.0395f4","type":"mqtt-broker","broker":"broker.mqtt-dashboard.com","port":"1883","clientid":""},{"id":"e4b1387a.934b88","type":"ui_group","z":"","name":"Control led ESP8266 (ESP32)","tab":"8b6381a9.6f9d6","order":1,"disp":true,"width":"6","collapse":false},{"id":"8b6381a9.6f9d6","type":"ui_tab","name":"Tab 1","icon":"dashboard","order":1}]

沒有留言:

張貼留言

2024_09 作業3 以Node-Red 為主

 2024_09 作業3  (以Node-Red 為主  Arduino 可能需要配合修改 ) Arduino 可能需要修改的部分 1)mqtt broker  2) 主題Topic (發行 接收) 3) WIFI ssid , password const char br...