sadapmap.proto 631 Bytes
Newer Older
1 2 3 4 5
syntax = "proto2";

package sadapmap;

/*
6
 * SADAPMAP v0.3
7 8 9 10 11 12 13 14
 */

message ChannelReading {
    required uint32 id = 1;
    required float value = 2;
}

message MultiChannelReading {
15
    repeated ChannelReading channels = 1 [(nanopb).max_count = 16];
16 17 18 19
}

message ChannelMetadata {
    required uint32 id = 1;
20 21
    required string name = 2 [(nanopb).max_count = 32];
    required string unit = 3 [(nanopb).max_count = 8];
22 23 24 25 26 27 28 29 30
    required float minimum = 4;
    required float maximum = 5;
}

message ReqChannelReading {
    required uint32 id = 1;
}

message ReqMultiChannelReading {
31
    repeated uint32 id = 1 [(nanopb).max_count = 16];
32
}