Demo Software for Avnet+AT&T IoT kit. / Mbed 2 deprecated AvnetATT_shape_hackathon

Dependencies:   mbed FXOS8700CQ

Committer:
stefanrousseau
Date:
Tue Jul 12 03:11:05 2016 +0000
Revision:
11:e6602513730f
Parent:
8:b08ec94d9e9f
Fixed I2C issues.  ; a) Removed stop between HTS221 address and read; b) The latest MBED uses the slave address differently from the legacy.  Stick with the old for now and fixed the HTS221 address to BF instead of 5F.; c) Made I2C definitions externs.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
stefanrousseau 3:26b3cc155f39 1 /******************************************************
stefanrousseau 3:26b3cc155f39 2 * Constants
stefanrousseau 3:26b3cc155f39 3 ******************************************************/
stefanrousseau 3:26b3cc155f39 4
stefanrousseau 8:b08ec94d9e9f 5 //sockwrite_mdm("GET \r\n/f653d97537235/a31c2684a02c/d35e42196968fd6/in/flow/climate?deviceID=foo&temp=41.0&humidity=87.33\r\n HTTP/1.1\r\nHost: run-east.att.io:80\r\nAccept: */*\r\n\r\n");
stefanrousseau 11:e6602513730f 6 //#define FLOW_CALLBACK_URL_START "GET \r\n/f653d97537235/a31c2684a02c/d35e42196968fd6/in/flow/climate"
stefanrousseau 11:e6602513730f 7 //#define FLOW_CALLBACK_URL_END "\r\n HTTP/1.1 Host: run-east.att.io:80 Accept: */*\r\n\r\n"
stefanrousseau 11:e6602513730f 8
stefanrousseau 11:e6602513730f 9 #define FLOW_CALLBACK_URL_START "GET \r\n/1e464b19cdcde/774c88d68202/86694923d5bf28a/in/flow/climate"
stefanrousseau 11:e6602513730f 10 #define FLOW_CALLBACK_URL_END "\r\n HTTP/1.1 Host: run-west.att.io:80 Accept: */*\r\n\r\n"
stefanrousseau 3:26b3cc155f39 11
stefanrousseau 3:26b3cc155f39 12 /******************************************************
stefanrousseau 3:26b3cc155f39 13 * Type Definitions
stefanrousseau 3:26b3cc155f39 14 ******************************************************/
stefanrousseau 3:26b3cc155f39 15 #define FLOW_FIELD_LEN_LIMIT 32
stefanrousseau 3:26b3cc155f39 16 // Flow Message Definition //
stefanrousseau 3:26b3cc155f39 17 typedef struct
stefanrousseau 3:26b3cc155f39 18 {
stefanrousseau 3:26b3cc155f39 19 char URL_start[256];
stefanrousseau 3:26b3cc155f39 20 char URL_end[256];
stefanrousseau 3:26b3cc155f39 21 char Device_ID[128];
stefanrousseau 3:26b3cc155f39 22
stefanrousseau 3:26b3cc155f39 23 float latitude;
stefanrousseau 3:26b3cc155f39 24 float longitude;
stefanrousseau 3:26b3cc155f39 25 long elevation;
stefanrousseau 3:26b3cc155f39 26 } Flow_datapoint_t;