API
The API is described in 7 parts. Presented here in a reasonable order for learning:
- API initialization and device discovery Functions to support API initialization and device discovery. The API must be initialized before first use with OmStartup(), and shut down after use with OmShutdown().
- Device status Functions to support querying the device version, battery level, health and time, and setting of the time and LED indicator.
- Device settings and meta-data Functions to support reading and writing device settings and other meta-data, including clearing the device data storage.
- Data download Functions to provide simultaneous download from multiple devices.
- Return codes API return and error codes. The return values to most API functions are plain
int
types.
- Date/time type A representation of a date and time used by the API functions. A single integer value is used to pack the date/time for a simpler, cross-language, API.
- Binary data file reader Functions to read a binary data file.
- See also
- Example code that covers a range of uses of the API.