mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-28 13:48:49 +08:00

* MF-325 - Add SPDX license and copyright headers Signed-off-by: Ivan Milošević <iva@blokovi.com> * MF-325 - Add SPDX license and copyright headers Signed-off-by: Ivan Milošević <iva@blokovi.com> * MF-325 - Add SPDX license and copyright headers Signed-off-by: Ivan Milošević <iva@blokovi.com> * MF-325 - Add SPDX license and copyright headers Signed-off-by: Ivan Milošević <iva@blokovi.com> * MF-325 - Change mainflux version from 0.4.0 to 0.5.0 Signed-off-by: Ivan Milošević <iva@blokovi.com>
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;
|
|
}
|