sadapmap.proto 654 Bytes
Newer Older
1 2
syntax = "proto2";

3
import "nanopb.proto";
4 5 6
package sadapmap;

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

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

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

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

message ReqChannelReading {
    required uint32 id = 1;
}

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