-
Notifications
You must be signed in to change notification settings - Fork 118
The Nightscout download model
#Download Model The download model represents a snapshot in time of data retrieved from a device and the uploader. In order to address backward compatibility and share this data across multiple platforms, the uploader uses Protocol Buffers to define the model. The download model is used with only MQTT for now.
##Protobuf Messages The message named "Download" is used to represent a download for all supported devices.
Some messages or enums can be shared between devices. For instance, DownloadStatus or GlucoseUnit.
Other messages or enums are device specific and should be prefaced with an identifier for that device or class of devices. e.g. G4Trend is an attribute specific to the Dexcom G4.
##Uploader implementation The .proto file can be found in android-uploader/core/src/main/java/com/nightscout/core/model/Download.proto.
We chose to use Square's Wire as our protobuf implementation. All classes found in android-uploader/core/src/main/java/com/nightscout/core/model/ are generated by Wire's compiler
You must recompile the .proto with every change to it.