Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "id": "8fbd3dd524fe7c7c",
- "type": "function",
- "z": "35930cf9.5520ec",
- "name": "Disable RS485",
- "func": "var controller = \"http://your.njspc.ip.here:4200\"\nmsg.method = \"PUT\"\nmsg.url = controller + \"/app/rs485Port\"\nmsg.payload = {\n \"portId\": 0, \n \"enabled\": false \n }\n\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "libs": [],
- "x": 1600,
- "y": 960,
- "wires": [
- [
- "5922aa82a07177f6"
- ]
- ]
- },
- {
- "id": "a946feef52cc3a34",
- "type": "inject",
- "z": "35930cf9.5520ec",
- "name": "Try",
- "props": [],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "",
- "x": 1430,
- "y": 960,
- "wires": [
- [
- "8fbd3dd524fe7c7c"
- ]
- ]
- },
- {
- "id": "85695444f9ce946c",
- "type": "inject",
- "z": "35930cf9.5520ec",
- "name": "Try",
- "props": [],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "",
- "x": 1430,
- "y": 1020,
- "wires": [
- [
- "ce8a559ee8d7c194"
- ]
- ]
- },
- {
- "id": "ce8a559ee8d7c194",
- "type": "function",
- "z": "35930cf9.5520ec",
- "name": "Enable RS485",
- "func": "var controller = \"http://your.njspc.ip.here:4200\"\n\nmsg.method = \"PUT\"\nmsg.url = controller + \"/app/rs485Port\"\nmsg.payload = {\n \"portId\": 0, \n \"enabled\": true\n }\n\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "libs": [],
- "x": 1600,
- "y": 1020,
- "wires": [
- [
- "5922aa82a07177f6"
- ]
- ]
- },
- {
- "id": "5922aa82a07177f6",
- "type": "http request",
- "z": "35930cf9.5520ec",
- "name": "Talk to NjsPC API",
- "method": "use",
- "ret": "obj",
- "paytoqs": "ignore",
- "url": "",
- "tls": "",
- "persist": false,
- "proxy": "",
- "authType": "",
- "senderr": false,
- "x": 1830,
- "y": 1020,
- "wires": [
- []
- ]
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment