API  2.2
TSmarT Software Library
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
tsmart_carriots_external_config_t Struct Reference

External configuration for a trigger. More...

#include <tsmart_carriots.h>

Data Fields

uint8_t * url
 
uint8_t verb [PR_TSMART_CARRIOTS_VERB_SIZE]
 
tsmart_carriots_addiotional_header_tadd_header
 
uint8_t n_headers
 
uint8_t payload [PR_TSMART_CARRIOTS_TRIGGER_PAYLOAD]
 

Detailed Description

External configuration for a trigger.

Field Documentation

Pointer to additional header

Examples:
carriots_2g.c, and carriots_wifi.c.
uint8_t n_headers

Number of addition headers

Examples:
carriots_2g.c, and carriots_wifi.c.
uint8_t payload[PR_TSMART_CARRIOTS_TRIGGER_PAYLOAD]

Message to send when a trigger happends

Examples:
carriots_2g.c, and carriots_wifi.c.
uint8_t* url

URL to push the data. It must be finished with NULL character and it will be the path without "http://". ie: "api.carriots.com" or "192.168.100.10"

Examples:
carriots_2g.c, and carriots_wifi.c.
uint8_t verb[PR_TSMART_CARRIOTS_VERB_SIZE]

HTTP command:

  • GET
  • POST
  • PUT
  • DELETE
Note
TSmarT embedded platforms only support the "POST" HTTP method
Examples:
carriots_2g.c, and carriots_wifi.c.