- 积分
- 477
- 金钱
- 422
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
中级会员
- 积分
- 477
- 金钱
- 422
- HASS币
- 0
|
本帖最后由 xiaobao80 于 2020-7-20 23:36 编辑
流程:
[
{
"id": "2348bc82.8796bc",
"type": "tab",
"label": "流程 1",
"disabled": false,
"info": ""
},
{
"id": "46787d50.95be24",
"type": "tcp in",
"z": "2348bc82.8796bc",
"name": "",
"server": "client",
"host": "192.168.1.100",
"port": "26",
"datamode": "stream",
"datatype": "buffer",
"newline": "",
"topic": "",
"base64": false,
"x": 160,
"y": 160,
"wires": [
[
"4f93bd68.1e904c",
"c1156076.a065f"
]
]
},
{
"id": "4f93bd68.1e904c",
"type": "change",
"z": "2348bc82.8796bc",
"name": "",
"rules": [
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "[161]",
"fromt": "msg",
"to": "1",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 410,
"y": 160,
"wires": [
[
"c7adad59.aefd68"
]
]
},
{
"id": "c1156076.a065f",
"type": "debug",
"z": "2348bc82.8796bc",
"name": "tcp1",
"active": true,
"tosidebar": true,
"console": true,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"statusVal": "payload",
"statusType": "auto",
"x": 330,
"y": 80,
"wires": []
},
{
"id": "c7adad59.aefd68",
"type": "debug",
"z": "2348bc82.8796bc",
"name": "修改1",
"active": true,
"tosidebar": true,
"console": true,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"statusVal": "payload",
"statusType": "auto",
"x": 720,
"y": 160,
"wires": []
}
]
液晶面板发送自定义指令 如 11或1a 等类似;tcp in 收到的数据如何转换成1或者0(布尔 true flase),控制其它设备开关。谢谢!!
|
-
|