2023-03-04 12:09:53 +00:00
|
|
|
// Copyright (C) 2023 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2023-01-06 17:18:36 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
//! [0]
|
|
|
|
package qt.examples.sensors;
|
|
|
|
|
2023-08-17 07:45:41 +00:00
|
|
|
message Coordinates {
|
2023-01-06 17:18:36 +00:00
|
|
|
double longitude = 1;
|
|
|
|
double latitude = 2;
|
|
|
|
double altitude = 3;
|
|
|
|
}
|
|
|
|
|
2023-08-17 07:45:41 +00:00
|
|
|
message Temperature {
|
2023-01-06 17:18:36 +00:00
|
|
|
enum Unit {
|
|
|
|
Farenheit = 0;
|
|
|
|
Celsius = 1;
|
|
|
|
}
|
|
|
|
sint32 value = 1;
|
|
|
|
Unit units = 2;
|
|
|
|
}
|
|
|
|
|
2023-08-17 07:45:41 +00:00
|
|
|
message WarningNotification {
|
2023-01-06 17:18:36 +00:00
|
|
|
string text = 1;
|
|
|
|
}
|
|
|
|
//! [0]
|