Created
November 9, 2017 20:38
-
-
Save kke/e217f8c57d6b1696058d2cccb3008fd0 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
/* Automatically generated nanopb constant definitions */ | |
/* Generated by nanopb-0.3.6 at Thu Nov 9 22:08:54 2017. */ | |
#include "sensor.pb.h" | |
/* @@protoc_insertion_point(includes) */ | |
#if PB_PROTO_HEADER_VERSION != 30 | |
#error Regenerate this file with the current version of nanopb generator. | |
#endif | |
const pb_field_t SensorReport_fields[8] = { | |
PB_FIELD( 1, FIXED32 , OPTIONAL, STATIC , FIRST, SensorReport, device_id, device_id, 0), | |
PB_FIELD( 2, FIXED32 , OPTIONAL, STATIC , OTHER, SensorReport, sensor_id, device_id, 0), | |
PB_FIELD( 3, FIXED32 , OPTIONAL, STATIC , OTHER, SensorReport, timestamp, sensor_id, 0), | |
PB_ONEOF_FIELD(value, 4, FLOAT , ONEOF, STATIC , OTHER, SensorReport, f, timestamp, 0), | |
PB_ONEOF_FIELD(value, 5, FIXED32 , ONEOF, STATIC , OTHER, SensorReport, percentage, timestamp, 0), | |
PB_ONEOF_FIELD(value, 6, SFIXED32, ONEOF, STATIC , OTHER, SensorReport, val, timestamp, 0), | |
PB_ONEOF_FIELD(value, 7, BOOL , ONEOF, STATIC , OTHER, SensorReport, b, timestamp, 0), | |
PB_LAST_FIELD | |
}; | |
const pb_field_t ServerResponse_fields[6] = { | |
PB_FIELD( 1, FIXED32 , OPTIONAL, STATIC , FIRST, ServerResponse, goto_sleep_seconds, goto_sleep_seconds, 0), | |
PB_FIELD( 2, BOOL , OPTIONAL, STATIC , OTHER, ServerResponse, upgrade_available, goto_sleep_seconds, 0), | |
PB_FIELD( 3, BOOL , OPTIONAL, STATIC , OTHER, ServerResponse, start_ota_ap, upgrade_available, 0), | |
PB_FIELD( 4, STRING , OPTIONAL, CALLBACK, OTHER, ServerResponse, firmware_url, start_ota_ap, 0), | |
PB_FIELD( 5, STRING , OPTIONAL, CALLBACK, OTHER, ServerResponse, spiffs_url, firmware_url, 0), | |
PB_LAST_FIELD | |
}; | |
const pb_field_t Ping_fields[3] = { | |
PB_FIELD( 1, UENUM , OPTIONAL, STATIC , FIRST, Ping, operation, operation, 0), | |
PB_FIELD( 2, FIXED32 , OPTIONAL, STATIC , OTHER, Ping, number, operation, 0), | |
PB_LAST_FIELD | |
}; | |
/* @@protoc_insertion_point(eof) */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment