1
0
mirror of https://github.com/mainflux/mainflux.git synced 2025-04-26 13:48:53 +08:00
Mainflux.mainflux/message.proto
Dejan Mijić f5fbd6f22a Add protobuf (#192)
Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
2018-03-19 10:14:43 +01:00

29 lines
688 B
Protocol Buffer

syntax = "proto3";
package mainflux;
// RawMessage represents a message emitted by the Mainflux adapters layer.
message RawMessage {
string Channel = 1;
string Publisher = 2;
string Protocol = 3;
string ContentType = 4;
bytes Payload = 5;
}
// Message represents a resolved (normalized) raw message.
message Message {
string Channel = 1;
string Publisher = 2;
string Protocol = 3;
string Name = 4;
string Unit = 5;
double Value = 6;
string StringValue = 7;
bool BoolValue = 8;
string DataValue = 9;
double ValueSum = 10;
double Time = 11;
double UpdateTime = 12;
string Link = 13;
}