Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
connector_data_point_t Struct Reference
[Data structure for non-binary data points.]
Data structure to make a linked list of data points to send it out in one transaction. More...
#include <connector_api_data_point.h>
Data Fields | |
| struct { | |
| enum connector_data_point_t:: { ... } type | |
| data format type | |
| union { | |
| union { | |
| int32_t int_value | |
| 32-bit two's complement integer | |
| int64_t long_value | |
| 64-bit two's complement integer | |
| char * string_value | |
| a null-terminated utf-8 encoding string | |
| float float_value | |
| 32-bit IEEE754 floating point | |
| double double_value | |
| 64-bit IEEE754 floating point | |
| } native | |
| to represent the data value in their native form | |
| char * text | |
| carries data in ascii format, a null-terminated string | |
| } element | |
| each data element | |
| } | data |
| data in each data point | |
| struct { | |
| enum connector_data_point_t:: { ... } source | |
| Time value format. | |
| union { | |
| connector_time_epoch_fractional_t since_epoch_fractional | |
| Time since the Epoch time in seconds and milliseconds. | |
| connector_time_epoch_whole_t since_epoch_whole | |
| Time since the Epoch time in milliseconds. | |
| char * iso8601_string | |
| A null-terminated local time in ISO 8601 format. | |
| } value | |
| Time value data structure. | |
| } | time |
| Time at the data point is captured. | |
| struct { | |
| enum connector_data_point_t:: { ... } type | |
| location format type | |
| union { | |
| struct { | |
| float latitude | |
| latitude in degree | |
| float longitude | |
| longitude in degree | |
| float elevation | |
| elevation in meters | |
| } native | |
| location in native format | |
| struct { | |
| char * latitude | |
| latitude in degree (null-terminated string) | |
| char * longitude | |
| longitude in degree (null-terminated string) | |
| char * elevation | |
| elevation in meters (null-terminated string) | |
| } text | |
| location in text format | |
| } value | |
| location value | |
| } | location |
| location where the data point is captured | |
| struct { | |
| enum connector_data_point_t:: { ... } type | |
| quality format type | |
| int value | |
| data quality value | |
| } | quality |
| user specified data point quality | |
| char * | description |
| null terminated description string (optional field, set to NULL if not used) | |
| struct connector_data_point_t * | next |
| Points to next data point, set to NULL if this is the last one. | |
Detailed Description
Data structure to make a linked list of data points to send it out in one transaction.
All the data points in a list must belong to single stream.
Definition at line 115 of file connector_api_data_point.h.
Field Documentation
| struct { ... } data |
data in each data point
| char* description |
null terminated description string (optional field, set to NULL if not used)
Definition at line 231 of file connector_api_data_point.h.
| double double_value |
64-bit IEEE754 floating point
Definition at line 136 of file connector_api_data_point.h.
| union { ... } element |
each data element
| float elevation |
elevation in meters
Definition at line 205 of file connector_api_data_point.h.
| char* elevation |
elevation in meters (null-terminated string)
Definition at line 213 of file connector_api_data_point.h.
| float float_value |
32-bit IEEE754 floating point
Definition at line 135 of file connector_api_data_point.h.
32-bit two's complement integer
Definition at line 129 of file connector_api_data_point.h.
| char* iso8601_string |
A null-terminated local time in ISO 8601 format.
Supported format is YYYY-MM-DDThh:mm:ss[.mmm]TZD (eg 2012-03-29T10:05:45-06:00) where:
- YYYY = four-digit year.
- MM = two-digit month (eg 03=March).
- DD = two-digit day of the month (01 through 31).
- T = a set character indicating the start of the time element.
- hh = two digits of an hour (00 through 23, AM/PM not included).
- mm = two digits of a minute (00 through 59).
- ss = two digits of a second (00 through 59).
- mmmm (optional) milliseconds (0 through 999).
- TZD = time zone designator (Z or +hh:mm or -hh:mm), the + or - values indicate how far ahead or behind a time zone is from the UTC zone. US time zone values are as follows:
- EDT = -4:00
- EST/CDT = -5:00
- CST/MDT = -6:00
- MST/PDT = -7:00
- PST = -8:00
- Some examples of valid representations:
- 2012-01-12T06:16:55.235Z
- 2012-12-22T03:16:44Z
- 2012-12-21T19:16:44-08:00
Definition at line 163 of file connector_api_data_point.h.
| float latitude |
latitude in degree
Definition at line 203 of file connector_api_data_point.h.
| char* latitude |
latitude in degree (null-terminated string)
Definition at line 211 of file connector_api_data_point.h.
| struct { ... } location |
location where the data point is captured
64-bit two's complement integer
Definition at line 131 of file connector_api_data_point.h.
| float longitude |
longitude in degree
Definition at line 204 of file connector_api_data_point.h.
| char* longitude |
longitude in degree (null-terminated string)
Definition at line 212 of file connector_api_data_point.h.
| struct { ... } ::@11 native |
location in native format
| union { ... } native |
to represent the data value in their native form
| struct connector_data_point_t* next |
Points to next data point, set to NULL if this is the last one.
Definition at line 233 of file connector_api_data_point.h.
| struct { ... } quality |
user specified data point quality
Time since the Epoch time in seconds and milliseconds.
Definition at line 159 of file connector_api_data_point.h.
Time since the Epoch time in milliseconds.
Definition at line 161 of file connector_api_data_point.h.
| enum { ... } source |
Time value format.
| char* string_value |
a null-terminated utf-8 encoding string
Definition at line 133 of file connector_api_data_point.h.
| char* text |
carries data in ascii format, a null-terminated string
Definition at line 140 of file connector_api_data_point.h.
| struct { ... } ::@12 text |
location in text format
| struct { ... } time |
Time at the data point is captured.
| enum { ... } type |
location format type
| enum { ... } type |
quality format type
| enum { ... } type |
data format type
| union { ... } value |
Time value data structure.
| int value |
data quality value
Definition at line 228 of file connector_api_data_point.h.
| union { ... } value |
location value
Generated on Tue Jul 12 2022 19:18:39 by
1.7.2