/
example.json
141 lines (141 loc) · 2.88 KB
/
example.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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
[
{
"id": "f25fab44be466ad1",
"type": "tab",
"label": "node-red-bit-encode",
"disabled": false,
"info": "",
"env": []
},
{
"id": "b391761448046a85",
"type": "inject",
"z": "f25fab44be466ad1",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "{ \"int\": 12, \"bool\": true, \"bools\": [true, false] }",
"payloadType": "json",
"x": 210,
"y": 140,
"wires": [
[
"9117ebf238593b13",
"2e472c5ea6853569"
]
]
},
{
"id": "2e472c5ea6853569",
"type": "debug",
"z": "f25fab44be466ad1",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"statusVal": "payload",
"statusType": "auto",
"x": 470,
"y": 140,
"wires": []
},
{
"id": "9117ebf238593b13",
"type": "bit-encode",
"z": "f25fab44be466ad1",
"name": "",
"bits": "0efd3686da430906",
"x": 300,
"y": 200,
"wires": [
[
"6323e4e6cf70c133",
"662b1d6b232b88d3"
]
]
},
{
"id": "6323e4e6cf70c133",
"type": "bit-decode",
"z": "f25fab44be466ad1",
"name": "",
"bits": "0efd3686da430906",
"x": 340,
"y": 260,
"wires": [
[
"88b11f9692881a7b"
]
]
},
{
"id": "662b1d6b232b88d3",
"type": "debug",
"z": "f25fab44be466ad1",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"statusVal": "payload",
"statusType": "auto",
"x": 550,
"y": 200,
"wires": []
},
{
"id": "88b11f9692881a7b",
"type": "debug",
"z": "f25fab44be466ad1",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"statusVal": "payload",
"statusType": "auto",
"x": 590,
"y": 260,
"wires": []
},
{
"id": "0efd3686da430906",
"type": "bit-config",
"name": "Test Config",
"bits": [
{
"property": "int",
"length": 4,
"shift": 0,
"type": "number"
},
{
"property": "bool",
"length": 1,
"shift": 4,
"type": "boolean"
},
{
"property": "bools",
"length": 2,
"shift": 5,
"type": "boolean"
}
]
}
]