Node-RED has very nice "single-click deployment" feature. Using this feature, node-red deploys all its nodes and flows very quickly.
However, I would like to know - where flows and nodes ,we develop in Node-RED editor, are deployed when we click "deploy" button in the node-RED? The reason why I am asking because I would like to deploy Node-RED's generated code ( I guess it is in Node.js) on remote devices (e.g., Android) automatically.
I know one of solution to connect is -- run MQTT publisher on Android device and write subscriber in MQTT subscriber in NodeRED to get event data. But, the problem with this solution is - manual deployment (time consuming, error prone).
As Tiago has suggested in the answer section of this question, Node-RED generates JSON files in the useDir
according to nodes and flows we define in the Node-RED editor. Can we get node.js
files, instead of JSON files ? This would help us to deploy device specific code on each device without loading Node-RED editor on each device?