The Cayenne MQTT mbed Library provides functions to easily connect to the Cayenne IoT project builder.
Fork of Cayenne-MQTT-mbed by
Diff: src/CayenneUtils/CayenneUtils.h
- Revision:
- 1:90dccf306268
- Parent:
- 0:09ef59d2d0f7
- Child:
- 22:0dbabcc6e7b2
diff -r 09ef59d2d0f7 -r 90dccf306268 src/CayenneUtils/CayenneUtils.h --- a/src/CayenneUtils/CayenneUtils.h Fri Oct 07 17:21:45 2016 +0000 +++ b/src/CayenneUtils/CayenneUtils.h Fri Oct 07 22:24:51 2016 +0000 @@ -39,10 +39,13 @@ enum CayenneReturnCode { CAYENNE_BUFFER_OVERFLOW = -2, CAYENNE_FAILURE = -1, CAYENNE_SUCCESS = 0 }; +/** +* A unit/value pair used in Cayenne payloads. +*/ typedef struct CayenneValuePair { - const char* unit; - const char* value; + const char* unit; /**< The data unit. */ + const char* value; /**< The data value. */ } CayenneValuePair; /**