sichon1023 发表于 2022-11-27 18:19:20

求助 关于arduino连接问题

由于arduino每秒出结果,所以NODE-RED的debug也一直每秒出结果,请问有功能可以做到出现变化debug才执行一次结果吗?因为想做有警报,才寄MAIL的功能

[
    {
      "id": "086263e8695f0017",
      "type": "tab",
      "label": "流程4",
      "disabled": false,
      "info": "",
      "env": []
    },
    {
      "id": "710d5031b9e19577",
      "type": "inject",
      "z": "086263e8695f0017",
      "name": "",
      "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
      ],
      "repeat": "1",
      "crontab": "",
      "once": true,
      "onceDelay": "1",
      "topic": "",
      "payload": "test",
      "payloadType": "str",
      "x": 130,
      "y": 200,
      "wires": [
            [
                "a46811765e1b8edb"
            ]
      ]
    },
    {
      "id": "a46811765e1b8edb",
      "type": "debug",
      "z": "086263e8695f0017",
      "name": "debug 7",
      "active": false,
      "tosidebar": true,
      "console": false,
      "tostatus": false,
      "complete": "payload",
      "targetType": "msg",
      "statusVal": "",
      "statusType": "auto",
      "x": 340,
      "y": 160,
      "wires": []
    },
    {
      "id": "941bacd4b65143c9",
      "type": "serial in",
      "z": "086263e8695f0017",
      "name": "arduino",
      "serial": "14a59ae90859999f",
      "x": 130,
      "y": 120,
      "wires": [
            [
                "a46811765e1b8edb"
            ]
      ]
    },
    {
      "id": "14a59ae90859999f",
      "type": "serial-port",
      "serialport": "COM5",
      "serialbaud": "9600",
      "databits": "8",
      "parity": "none",
      "stopbits": "1",
      "waitfor": "",
      "dtr": "none",
      "rts": "none",
      "cts": "none",
      "dsr": "none",
      "newline": "\\n",
      "bin": "false",
      "out": "char",
      "addchar": "",
      "responsetimeout": "10000"
    }
]

602293544 发表于 2022-11-27 21:43:02

rbe                  
页: [1]
查看完整版本: 求助 关于arduino连接问题