Skip to content

Commit 9046679

Browse files
authored
add milesight at101-fh (#981)
1 parent 2857b28 commit 9046679

File tree

7 files changed

+1192
-0
lines changed

7 files changed

+1192
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Uplink decoder decodes binary data uplink into a JSON object (optional)
2+
# For documentation on writing encoders and decoders, see: https://thethingsstack.io/integrations/payload-formatters/javascript/
3+
uplinkDecoder:
4+
fileName: at101-fh.js
5+
6+
examples:
7+
- description: Initial Connection - Milesight IoT
8+
input:
9+
fPort: 85
10+
bytes: [0xFF, 0x0B, 0xFF, 0xFF, 0x01, 0x01, 0xFF, 0x16, 0x67, 0x45, 0xE2, 0x75, 0x66, 0x24, 0x00, 0x08, 0xFF, 0x09, 0x01, 0x10, 0xFF, 0x0A, 0x01, 0x02]
11+
output:
12+
data:
13+
device_status: 'on'
14+
firmware_version: 'v1.2'
15+
hardware_version: 'v1.1'
16+
ipso_version: 'v0.1'
17+
sn: '6745e27566240008'
18+
downlinkEncoder:
19+
fileName: at101-fh-encoder.js
20+
examples:
21+
- description: Set report interval to 300 seconds and motion report interval to 20 seconds
22+
input:
23+
data:
24+
report_interval: 300
25+
motion_report_interval: 20
26+
output:
27+
bytes:
28+
- 0xFF
29+
- 0x8E
30+
- 0x00
31+
- 0x2C
32+
- 0x01
33+
- 0xFF
34+
- 0x8E
35+
- 0x01
36+
- 0x14
37+
- 0x00

0 commit comments

Comments
 (0)