mirror of
https://github.com/google/pebble
synced 2026-10-18 01:04:12 +02:00
Import of the watch repository from Pebble
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# Regression test for #522:
|
||||
# Compile Errors when using UENUM on atmega32u4
|
||||
|
||||
Import('env')
|
||||
|
||||
env2 = env.Clone()
|
||||
env2.Append(CPPDEFINES = {'UENUM': '_SFR_MEM8', 'BOOL': 'foobar_bool_t',
|
||||
'INT32': '1234', 'OPTIONAL': 'xyz_t',
|
||||
'REPEATED': '0', 'STATIC': 'static',
|
||||
'CALLBACK': '9999'})
|
||||
env2.NanopbProto("uenum.proto")
|
||||
env2.Object(["uenum.pb.c"])
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
syntax = "proto3";
|
||||
|
||||
enum ReadingType {
|
||||
UNKNOWN = 0;
|
||||
TEMP = 1;
|
||||
HUMIDITY = 2;
|
||||
PRESSURE = 3;
|
||||
CO2 = 4;
|
||||
LIGHT = 5;
|
||||
POWER = 6;
|
||||
}
|
||||
|
||||
message Reading {
|
||||
ReadingType readingType = 1;
|
||||
float floatVal = 2;
|
||||
}
|
||||
|
||||
message Lora {
|
||||
float rssi = 1;
|
||||
float frequency_error = 2;
|
||||
float snr = 3;
|
||||
}
|
||||
|
||||
message Meta {
|
||||
int32 device_id = 1;
|
||||
string device_type = 2;
|
||||
float voltage = 3;
|
||||
Lora lora = 4;
|
||||
}
|
||||
|
||||
message Packet {
|
||||
int32 packet_id = 1;
|
||||
Meta meta = 2;
|
||||
repeated Reading data = 3;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user