Skip to content

Commit

Permalink
Update basic_flow_group.json
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfwithSword committed Jun 25, 2024
1 parent 7aed785 commit a515437
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion files/nodered/basic_flow_group.json
Original file line number Diff line number Diff line change
Expand Up @@ -5982,7 +5982,7 @@
"z": "fbda6ab16491b918",
"g": "36af78d3bdf6f143",
"name": "Set Connection State Flow",
"func": "\nif (msg.status != undefined && msg.status.fill != undefined){\n if (msg.status.fill == \"green\") {\n flow.set(\"is_connected\", \"true\");\n node.send({});\n }\n else if (msg.status.fill == \"red\") {\n flow.set(\"is_connected\", \"false\");\n flow.set(\"x1plus_active\", undefined); \n node.send({});\n }\n else if (msg.status.fill == \"yellow\") {\n flow.set(\"is_connected\", \"false\");\n }\n}",
"func": "\nif (msg.status != undefined && msg.status.fill != undefined){\n if (msg.status.fill == \"green\") {\n flow.set(\"is_connected\", \"true\");\n node.send({});\n }\n else if (msg.status.fill == \"red\") {\n flow.set(\"is_connected\", \"false\");\n //flow.set(\"x1plus_active\", undefined); \n node.send({});\n }\n else if (msg.status.fill == \"yellow\") {\n flow.set(\"is_connected\", \"false\");\n }\n}",
"outputs": 1,
"timeout": "",
"noerr": 0,
Expand Down Expand Up @@ -7337,6 +7337,7 @@
"id": "d944c995cf7771e0",
"type": "function",
"z": "fbda6ab16491b918",
"d": true,
"g": "b56f3cd7ce590023",
"name": "Disconnect",
"func": "let config = {\n \"action\": \"disconnect\"\n}\nnode.send(config);",
Expand Down

0 comments on commit a515437

Please sign in to comment.