Opening book details…
Can I read Node-RED: JSON Handling with Switch Node on EtoBox?
Node-RED: JSON Handling with Switch Node by Mahadzir Bin Mat Rabi' is a document available to read on EtoBox.
What is Node-RED: JSON Handling with Switch Node about?
The document describes using various Node-RED nodes to manipulate message payloads received over MQTT. A switch node routes messages based on the "msg.payload.analyze" property. A change node adds a "note" property. An rbe node only passes messages if the "msg.payload.value" changes by more than 20%. A range node scales numeric values from 0-10 to 0-255. Finally, inject and MQTT output nodes are used to test the flow by publishing messages locally rather than via an external MQTT broker.
- Author
- Mahadzir Bin Mat Rabi'
- Language
- EN