在node-red中switch数据的判断

在node-red中switch数据的判断

[
    {
        "id": "273ea057.8ffe78",
        "type": "switch",
        "z": "72b57a2d.bafa3c",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "btwn",
                "v": "1",
                "vt": "num",
                "v2": "5000",
                "v2t": "num"
            },
            {
                "t": "btwn",
                "v": "5000",
                "vt": "num",
                "v2": "8888",
                "v2t": "num"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 250,
        "y": 720,
        "wires": [
            [
                "df5c9ebc.5273b8"
            ],
            []
        ]
    },
    {
        "id": "65d3b26a.844724",
        "type": "comment",
        "z": "72b57a2d.bafa3c",
        "name": "",
        "info": "",
        "x": 120,
        "y": 640,
        "wires": []
    },
    {
        "id": "df5c9ebc.5273b8",
        "type": "change",
        "z": "72b57a2d.bafa3c",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "34rsererererere",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 440,
        "y": 720,
        "wires": [
            [
                "ac15f279.9df698"
            ]
        ]
    },
    {
        "id": "ac15f279.9df698",
        "type": "debug",
        "z": "72b57a2d.bafa3c",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "x": 670,
        "y": 720,
        "wires": []
    },
    {
        "id": "2931e82c.d91d8",
        "type": "inject",
        "z": "72b57a2d.bafa3c",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "33",
        "payloadType": "num",
        "x": 110,
        "y": 720,
        "wires": [
            [
                "273ea057.8ffe78"
            ]
        ]
    }
]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值