forked from BrewBlox/brewblox-proto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTempSensorMock.proto
48 lines (40 loc) · 1.09 KB
/
TempSensorMock.proto
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
syntax = "proto3";
import "brewblox.proto";
import "nanopb.proto";
package blox.TempSensorMock;
message Fluctuation {
sint32 amplitude = 1 [
(brewblox.field).logged = true,
(brewblox.field).unit = DeltaCelsius,
(brewblox.field).scale = 4096,
(nanopb).int_size = IS_32
];
uint32 period = 2 [
(brewblox.field).unit = Second,
(brewblox.field).scale = 1000,
(nanopb).int_size = IS_32
];
};
message Block {
option (brewblox.msg).objtype = TempSensorMock;
option (brewblox.msg).impl = TempSensorInterface;
sint32 value = 1 [
(brewblox.field).logged = true,
(brewblox.field).unit = Celsius,
(brewblox.field).scale = 4096,
(brewblox.field).readonly = true,
(nanopb).int_size = IS_32
];
bool connected = 3 [ (brewblox.field).logged = true ];
sint32 setting = 4 [
(brewblox.field).unit = Celsius,
(brewblox.field).scale = 4096,
(nanopb).int_size = IS_32
];
repeated Fluctuation fluctuations = 5;
repeated uint32 strippedFields = 99 [
(brewblox.field).readonly = true,
(nanopb).int_size = IS_16,
(nanopb).max_count = 1
];
}