MaxVonEvil

NodeJS PoolController Disable RS485 port

Aug 7th, 2022
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.54 KB | None | 0 0
  1. [
  2. {
  3. "id": "8fbd3dd524fe7c7c",
  4. "type": "function",
  5. "z": "35930cf9.5520ec",
  6. "name": "Disable RS485",
  7. "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;",
  8. "outputs": 1,
  9. "noerr": 0,
  10. "initialize": "",
  11. "finalize": "",
  12. "libs": [],
  13. "x": 1600,
  14. "y": 960,
  15. "wires": [
  16. [
  17. "5922aa82a07177f6"
  18. ]
  19. ]
  20. },
  21. {
  22. "id": "a946feef52cc3a34",
  23. "type": "inject",
  24. "z": "35930cf9.5520ec",
  25. "name": "Try",
  26. "props": [],
  27. "repeat": "",
  28. "crontab": "",
  29. "once": false,
  30. "onceDelay": 0.1,
  31. "topic": "",
  32. "x": 1430,
  33. "y": 960,
  34. "wires": [
  35. [
  36. "8fbd3dd524fe7c7c"
  37. ]
  38. ]
  39. },
  40. {
  41. "id": "85695444f9ce946c",
  42. "type": "inject",
  43. "z": "35930cf9.5520ec",
  44. "name": "Try",
  45. "props": [],
  46. "repeat": "",
  47. "crontab": "",
  48. "once": false,
  49. "onceDelay": 0.1,
  50. "topic": "",
  51. "x": 1430,
  52. "y": 1020,
  53. "wires": [
  54. [
  55. "ce8a559ee8d7c194"
  56. ]
  57. ]
  58. },
  59. {
  60. "id": "ce8a559ee8d7c194",
  61. "type": "function",
  62. "z": "35930cf9.5520ec",
  63. "name": "Enable RS485",
  64. "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;",
  65. "outputs": 1,
  66. "noerr": 0,
  67. "initialize": "",
  68. "finalize": "",
  69. "libs": [],
  70. "x": 1600,
  71. "y": 1020,
  72. "wires": [
  73. [
  74. "5922aa82a07177f6"
  75. ]
  76. ]
  77. },
  78. {
  79. "id": "5922aa82a07177f6",
  80. "type": "http request",
  81. "z": "35930cf9.5520ec",
  82. "name": "Talk to NjsPC API",
  83. "method": "use",
  84. "ret": "obj",
  85. "paytoqs": "ignore",
  86. "url": "",
  87. "tls": "",
  88. "persist": false,
  89. "proxy": "",
  90. "authType": "",
  91. "senderr": false,
  92. "x": 1830,
  93. "y": 1020,
  94. "wires": [
  95. []
  96. ]
  97. }
  98. ]
Advertisement
Add Comment
Please, Sign In to add comment