-
Notifications
You must be signed in to change notification settings - Fork 0
/
device.yml
51 lines (51 loc) · 1.14 KB
/
device.yml
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
%YAML 1.1
---
# yaml-language-server: $schema=https://harp-tech.org/draft-02/schema/device.json
device: EnvironmentSensor
whoAmI: 1405
firmwareVersion: "0.1"
hardwareTargets: "0.1"
registers:
Pressure:
access: Read
address: 32
type: U32
description: Pressure, in Pa
Temperature:
access: Read
address: 33
type: Float
description: Temperature in degrees C
Humidity:
access: Read
address: 34
type: Float
description: Humidity, in %RH
SensorData:
access: Event
address: 35
type: Float
description: A periodic event will be emitted with aggregated data from all sensors.
length: 3
payloadSpec:
Pressure:
offset: 0
description: Pressure, in Pa
Temperature:
offset: 1
description: Temperature in degrees C
Humidity:
offset: 2
description: Humidity, in %RH
EnableEvents:
access: Write
address: 36
type: U8
maskType: Events
description: Enables (~2Hz) or disables the SensorData events
bitMasks:
Events:
bits:
Disable: 0x0
SensorData: 0x1
description: Available events on the device