Created
November 9, 2017 20:36
-
-
Save kke/58b3ec9ddd3a0a751764d3014f5a77f0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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