
PIC to Mbed errors
ubidots.h@0:b329a09583fb, 2017-09-01 (annotated)
- Committer:
- dan_cuspi
- Date:
- Fri Sep 01 16:11:35 2017 +0000
- Revision:
- 0:b329a09583fb
Ubidots PIC to MBED
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dan_cuspi | 0:b329a09583fb | 1 | #ifndef UBIDOTS_H |
dan_cuspi | 0:b329a09583fb | 2 | #define UBIDOTS_H |
dan_cuspi | 0:b329a09583fb | 3 | |
dan_cuspi | 0:b329a09583fb | 4 | #include <stdio.h> |
dan_cuspi | 0:b329a09583fb | 5 | #include <string.h> |
dan_cuspi | 0:b329a09583fb | 6 | #include <stdint.h> |
dan_cuspi | 0:b329a09583fb | 7 | |
dan_cuspi | 0:b329a09583fb | 8 | #define UBIDOTS_SERVER "things.ubidots.com" |
dan_cuspi | 0:b329a09583fb | 9 | #define SIZE_HTTP_BODY 100 |
dan_cuspi | 0:b329a09583fb | 10 | #define SIZE_BUFFER_POST 200 |
dan_cuspi | 0:b329a09583fb | 11 | |
dan_cuspi | 0:b329a09583fb | 12 | #define TOKEN "DihroZdscJDt6ZIBX8TMBr84QZDTM7" |
dan_cuspi | 0:b329a09583fb | 13 | #define VARIABLE_ID "59977324c03M973c345e0527" |
dan_cuspi | 0:b329a09583fb | 14 | |
dan_cuspi | 0:b329a09583fb | 15 | #define VALUE "\"value\": 1.0" |
dan_cuspi | 0:b329a09583fb | 16 | |
dan_cuspi | 0:b329a09583fb | 17 | //const char* ubidotsPOST( const char* token, const char* variable_id, float value); |
dan_cuspi | 0:b329a09583fb | 18 | uint8_t* ubidotsGET(uint8_t* token, uint8_t* variable_id ); |
dan_cuspi | 0:b329a09583fb | 19 | |
dan_cuspi | 0:b329a09583fb | 20 | #endif |