@Heath
Hi. This is the status
Losant side:
I have added an MQTT message node just after the function which output the string to be published
Broker: Losant broker
Topic: Sig1
Message template: none
I generated the keys and used the “access key” in th field user on the nodered “MQTT in” node and the “access key” as password.
On the node red side:
I have deployed an “MQTT in” node
Action: Subscribe to single topic (Sig1)
QoS: 0 (I did also try 2)
Server: mqtt://broker.losant.com:1883 connect automatically
Protocol: MQTT V3.1.1
Clinet ID: autogenerated
User: the key generated by Losant
Password: the secret generated by Losant
Stus: connecting… but doesn’t connect.
Do I need to give a path to the node in the topic field on the nodered? What else?
I am not sure what you mean with this question " How is Node-Red connecting to Losant? As a Device?"
Application
Nodered
[{"id":"7a44c1be03c0f9b8","type":"tab","label":"Flow 3","disabled":false,"info":"","env":[]},{"id":"d863e311fe900eb3","type":"debug","z":"7a44c1be03c0f9b8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":390,"y":320,"wires":[]},{"id":"f8641ad69a52f4a2","type":"mqtt in","z":"7a44c1be03c0f9b8","name":"","topic":"Sig1","qos":"0","datatype":"auto","broker":"96e3ac46313ba4cc","nl":false,"rap":true,"rh":0,"inputs":0,"x":180,"y":380,"wires":[["d863e311fe900eb3"]]},{"id":"96e3ac46313ba4cc","type":"mqtt-broker","name":"","broker":"mqtt://broker.losant.com:1883","port":"1883","clientid":"","autoConnect":true,"usetls":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"sessionExpiry":""}]