Connecting to MQTT

#1

Hello
I am trying to connect my hardware Rasppbeery PI based to MQTT client, but not connecting . I am not able to subscribe/publish to the topic ..can you please guide?





Data received out & sent/published to MQTT node/client ( either 1 or 0 value)

[{"id":"c0e82103.b8191","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"5568b954.ac8dc8","type":"npixiooutput","z":"c0e82103.b8191","out":"15","name":"Dout0","x":510,"y":120,"wires":[]},{"id":"867ebc6f.39082","type":"npixioinput","z":"c0e82103.b8191","in":"7","name":"DIin0","x":270,"y":400,"wires":[["c7681179.e9184","ed310a8f.a64b68","2bcf2e1f.3b86d2"]]},{"id":"df910238.d8149","type":"inject","z":"c0e82103.b8191","name":"","topic":"","payload":"0","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":210,"y":120,"wires":[["5568b954.ac8dc8"]]},{"id":"fd803a73.8a00a8","type":"npixiooutput","z":"c0e82103.b8191","out":"16","name":"Dout1","x":510,"y":160,"wires":[]},{"id":"41e091f8.5a411","type":"inject","z":"c0e82103.b8191","name":"","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":210,"y":180,"wires":[["fd803a73.8a00a8"]]},{"id":"1c2a92de.b01b7d","type":"npixiooutput","z":"c0e82103.b8191","out":"22","name":"Dout2","x":510,"y":200,"wires":[]},{"id":"3a14a4df.a6981c","type":"inject","z":"c0e82103.b8191","name":"","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":210,"y":240,"wires":[["1c2a92de.b01b7d"]]},{"id":"29ae8e45.860962","type":"npixiooutput","z":"c0e82103.b8191","out":"37","name":"Dout3","x":510,"y":240,"wires":[]},{"id":"17507f9f.ca5b8","type":"inject","z":"c0e82103.b8191","name":"","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":210,"y":300,"wires":[["29ae8e45.860962"]]},{"id":"c7681179.e9184","type":"debug","z":"c0e82103.b8191","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":530,"y":340,"wires":[]},{"id":"d7186f7f.dac78","type":"npixioinput","z":"c0e82103.b8191","in":"8","name":"DIin1","x":270,"y":444,"wires":[["c7681179.e9184"]]},{"id":"47ba3b93.185b94","type":"npixioinput","z":"c0e82103.b8191","in":"10","name":"DIin2","x":270,"y":487,"wires":[["c7681179.e9184"]]},{"id":"90ab21b4.68b73","type":"npixioinput","z":"c0e82103.b8191","in":"11","name":"DIin3","x":270,"y":540,"wires":[["c7681179.e9184"]]},{"id":"ed310a8f.a64b68","type":"ui_text","z":"c0e82103.b8191","group":"7cc91856.a28ea8","order":0,"width":0,"height":0,"name":"","label":"Input","format":"{{value}}","layout":"row-spread","x":680,"y":420,"wires":[]},{"id":"2bcf2e1f.3b86d2","type":"mqtt out","z":"c0e82103.b8191","name":"","topic":"","qos":"","retain":"","broker":"5ccc91ec.6ce1e","x":700,"y":280,"wires":[]},{"id":"7cc91856.a28ea8","type":"ui_group","z":"","name":"Home","tab":"e7790799.11c5e8","disp":true,"width":"6","collapse":false},{"id":"5ccc91ec.6ce1e","type":"mqtt-broker","z":"","name":"","broker":"192.168.0.105","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"{{value}}","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"e7790799.11c5e8","type":"ui_tab","z":"","name":"Default","icon":"dashboard","disabled":false,"hidden":false}]

..I m using this client to connect

0 Likes

#2

The topic is empty in your flow!!!!

0 Likes

#3

ohh thanks...i just put the topic...n can subscribe now the value..

0 Likes