直接使用 flows.json
在 Node-RED 编辑器中编排,部署同一份 JSON。流程、子流程、Link 节点、环境变量与 JSONata 表达式均遵循 Node-RED 语义。
[
{ "id": "f1", "type": "tab", "label": "Sensors" },
{ "id": "n1", "type": "mqtt in", "z": "f1",
"topic": "sensors/+", "wires": [["n2"]] },
{ "id": "n2", "type": "json", "z": "f1",
"wires": [["n3"]] }
]