Skip to content

Instantly share code, notes, and snippets.

@kke
Created November 9, 2017 20:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kke/58b3ec9ddd3a0a751764d3014f5a77f0 to your computer and use it in GitHub Desktop.
Save kke/58b3ec9ddd3a0a751764d3014f5a77f0 to your computer and use it in GitHub Desktop.
syntax = "proto3";
message SensorReport {
uint32 device_id = 1;
uint32 sensor_id = 2;
uint32 timestamp = 3;
oneof value {
float f = 4;
uint32 percentage = 5;
int32 val = 6;
bool b = 7;
}
}
message ServerResponse {
uint32 goto_sleep_seconds = 1;
bool upgrade_available = 2;
bool start_ota_ap = 3;
string firmware_url = 4;
string spiffs_url = 5;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment