-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkurapayload.proto
executable file
·51 lines (42 loc) · 1.61 KB
/
kurapayload.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
49
50
51
syntax = "proto2";
package kuradatatypes;
option java_package = "org.eclipse.kura.core.message.protobuf";
option java_outer_classname = "KuraPayloadProto";
message KuraPayload {
message KuraMetric {
enum ValueType {
DOUBLE = 0;
FLOAT = 1;
INT64 = 2;
INT32 = 3;
BOOL = 4;
STRING = 5;
BYTES = 6;
}
required string name = 1;
required ValueType type = 2;
optional double double_value = 3;
optional float float_value = 4;
optional int64 long_value = 5;
optional int32 int_value = 6;
optional bool bool_value = 7;
optional string string_value = 8;
optional bytes bytes_value = 9;
}
message KuraPosition {
required double latitude = 1;
required double longitude = 2;
optional double altitude = 3;
optional double precision = 4; // dilution of precision of the current satellite fix.
optional double heading = 5; // heading in degrees
optional double speed = 6; // meters per second
optional int64 timestamp = 7;
optional int32 satellites = 8; // number satellites locked by the GPS device
optional int32 status = 9; // status indicator for the GPS data: 1 = no GPS response; 2 = error in response; 4 = valid.
}
optional int64 timestamp = 1;
optional KuraPosition position = 2;
extensions 3 to 4999;
repeated KuraMetric metric = 5000; // can be zero, so optional
optional bytes body = 5001;
}