36 lines
753 B
Protocol Buffer
36 lines
753 B
Protocol Buffer
//
|
|
// Copyright (c) 2018
|
|
// Mainflux
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
syntax = "proto3";
|
|
package mainflux;
|
|
|
|
// RawMessage represents a message emitted by the Mainflux adapters layer.
|
|
message RawMessage {
|
|
uint64 Channel = 1;
|
|
uint64 Publisher = 2;
|
|
string Protocol = 3;
|
|
string ContentType = 4;
|
|
bytes Payload = 5;
|
|
}
|
|
|
|
// Message represents a resolved (normalized) raw message.
|
|
message Message {
|
|
uint64 Channel = 1;
|
|
uint64 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;
|
|
}
|