在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"
]
]
}
]