forked from malfarasplux/biofeatures
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyfunc_BIT.json
112 lines (112 loc) · 2.58 KB
/
pyfunc_BIT.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
[
{
"id": "64337fda.a24a7",
"type": "tab",
"label": "pyfunc BIT",
"disabled": false,
"info": ""
},
{
"id": "c89d1b08.f57f48",
"type": "debug",
"z": "64337fda.a24a7",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"x": 850,
"y": 200,
"wires": []
},
{
"id": "cd4037e7.e32fc8",
"type": "inject",
"z": "64337fda.a24a7",
"name": "pyJSON print",
"topic": "",
"payload": "{\"pyJSON\":true,\"type\":\"print\",\"val\":[5]}",
"payloadType": "json",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 150,
"y": 200,
"wires": [
[
"e24563d.0275ba"
]
]
},
{
"id": "e24563d.0275ba",
"type": "BITalinoNode",
"z": "64337fda.a24a7",
"x": 670,
"y": 200,
"wires": [
[
"c89d1b08.f57f48"
]
]
},
{
"id": "54d1a530.1678dc",
"type": "inject",
"z": "64337fda.a24a7",
"name": "pyJSON stop",
"topic": "",
"payload": "{\"pyJSON\":true,\"type\":\"stop\",\"val\":[5]}",
"payloadType": "json",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 150,
"y": 260,
"wires": [
[
"e24563d.0275ba"
]
]
},
{
"id": "c5e59a2a.b33048",
"type": "function",
"z": "64337fda.a24a7",
"name": "pyJSON BITalinoMAC",
"func": "var mac = msg.payload[\"macAddress\"]\nmsg.payload = {\n \"pyJSON\":true,\n \"type\":\"BITalino\",\n \"macAddress\": mac,\n \"val\":[5]\n };\n\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 460,
"y": 120,
"wires": [
[
"e24563d.0275ba"
]
]
},
{
"id": "d849c933.7112f8",
"type": "inject",
"z": "64337fda.a24a7",
"name": "{\"macAddress\":\"\"}",
"topic": "",
"payload": "{\"macAddress\":\"\"}",
"payloadType": "json",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 180,
"y": 120,
"wires": [
[
"c5e59a2a.b33048"
]
]
}
]