Microchip® Advanced Software Framework

exosite_example.c File Reference
#include "debug_conf.h"
#include "exosite_example.h"
#include "io1_board.h"
#include "tick_counter.h"

Macros

#define EXOSITE_EXAMPLE_HTTP_ACTIVATE_URL   "http://atmel.m2.exosite.com/provision/activate"
 
#define EXOSITE_EXAMPLE_HTTP_CIK_EXT_HEADER   "X-Exosite-CIK:%s\r\n"
 
#define EXOSITE_EXAMPLE_HTTP_CONTENT_TYPE   "application/x-www-form-urlencoded; charset=utf-8"
 
#define EXOSITE_EXAMPLE_HTTP_READ_AND_WRITE_URL   "http://atmel.m2.exosite.com/onep:v1/stack/alias?led"
 

Functions

static bool _exosite_example_configure_http_client (exosite_http_cb cb)
 Configure HTTP client module. More...
 
static void _exosite_example_configure_timer (void)
 Configure Timer module. More...
 
void _exosite_example_http_close (void *priv_data)
 
int _exosite_example_http_get_contents_length (void *priv_data)
 
const char * _exosite_example_http_get_contents_type (void *priv_data)
 
int _exosite_example_http_read (void *priv_data, char *buffer, uint32_t size, uint32_t written)
 
struct http_entity_exosite_example_http_set_default_entity (void)
 
bool exosite_example_activiate (char *activate_data)
 
bool exosite_example_init (exosite_http_cb cb)
 
bool exosite_example_read_and_write (char *write_data, char *cik)
 

Variables

struct http_entity g_http_entity = {0,}
 
struct http_client_module http_client_module_inst
 Instance of HTTP client module. More...
 
struct sw_timer_module swt_module_inst
 Instance of Timer module. More...
 

#define EXOSITE_EXAMPLE_HTTP_ACTIVATE_URL   "http://atmel.m2.exosite.com/provision/activate"
#define EXOSITE_EXAMPLE_HTTP_CIK_EXT_HEADER   "X-Exosite-CIK:%s\r\n"
#define EXOSITE_EXAMPLE_HTTP_CONTENT_TYPE   "application/x-www-form-urlencoded; charset=utf-8"
#define EXOSITE_EXAMPLE_HTTP_READ_AND_WRITE_URL   "http://atmel.m2.exosite.com/onep:v1/stack/alias?led"

static void _exosite_example_configure_timer ( void  )
static
void _exosite_example_http_close ( void *  priv_data)
int _exosite_example_http_get_contents_length ( void *  priv_data)
const char * _exosite_example_http_get_contents_type ( void *  priv_data)
int _exosite_example_http_read ( void *  priv_data,
char *  buffer,
uint32_t  size,
uint32_t  written 
)

struct http_entity g_http_entity = {0,}
struct http_client_module http_client_module_inst
struct sw_timer_module swt_module_inst