thingstream 2.0.0.0
|
Thingstream Click example. More...
Macros | |
#define | PROCESS_COUNTER 600 |
#define | PROCESS_RX_BUFFER_SIZE 600 |
#define | PROCESS_PARSER_BUFFER_SIZE 600 |
#define | THINGSTREAM_INFO "AT+IOTINFO" |
#define | THINGSTREAM_CREATE "AT+IOTCREATE" |
#define | THINGSTREAM_CONNECT "AT+IOTCONNECT=true" |
#define | THINGSTREAM_GPS_PWR "AT+IOTCGNSPWR=1" |
#define | THINGSTREAM_SUBSCRIBE "AT+IOTSUBSCRIBE=\"home/temperature\",1" |
#define | THINGSTREAM_PUBLISH "AT+IOTPUBLISH=\"home/temperature\",0,\"23 degrees\"" |
#define | THINGSTREAM_GPS_INFO "AT+IOTCGNSINF" |
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Thingstream Click example.
This example reads and processes data from Thingstream clicks.
The demo application is composed of two sections :
Initializes driver and power module.
Reads the received data and parses it.
#define PROCESS_COUNTER 600 |
#define PROCESS_PARSER_BUFFER_SIZE 600 |
#define PROCESS_RX_BUFFER_SIZE 600 |
#define THINGSTREAM_CONNECT "AT+IOTCONNECT=true" |
#define THINGSTREAM_CREATE "AT+IOTCREATE" |
#define THINGSTREAM_GPS_INFO "AT+IOTCGNSINF" |
#define THINGSTREAM_GPS_PWR "AT+IOTCGNSPWR=1" |
#define THINGSTREAM_INFO "AT+IOTINFO" |
#define THINGSTREAM_PUBLISH "AT+IOTPUBLISH=\"home/temperature\",0,\"23 degrees\"" |
#define THINGSTREAM_SUBSCRIBE "AT+IOTSUBSCRIBE=\"home/temperature\",1" |
void application_init | ( | void | ) |
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |