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

Dependencies:   mbed FXOS8700CQ

Committer:
stefanrousseau
Date:
Mon Jul 11 06:53:41 2016 +0000
Revision:
4:f83bedd9cab4
Parent:
3:26b3cc155f39
Child:
7:489835c87d95
Child:
8:b08ec94d9e9f
Added a sensors file that will write the FRDM-K64F motion sensor and the values from the SiLabs PMOD into a structure.

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 3:26b3cc155f39 5
stefanrousseau 3:26b3cc155f39 6 //sockwrite_mdm("GET /f653d97537235/a31c2684a02c/d35e42196968fd6/in/flow/climate?deviceID=e5ee19804bd500c8fe69a809342384c2&temp=41.0&humidity=87.33 HTTP/1.1 Host: run-east.att.io:80 Accept: */*\r\n\r\n");
stefanrousseau 3:26b3cc155f39 7 #define FLOW_CALLBACK_URL_START "GET /f653d97537235/a31c2684a02c/d35e42196968fd6/in/flow/climate"
stefanrousseau 3:26b3cc155f39 8 #define FLOW_DEVICE_ID "e5ee19804bd500c8fe69a809342384c2"
stefanrousseau 3:26b3cc155f39 9 #define FLOW_CALLBACK_URL_END "HTTP/1.1 Host: run-east.att.io:80 Accept: */*\r\n\r\n"
stefanrousseau 3:26b3cc155f39 10
stefanrousseau 3:26b3cc155f39 11 /******************************************************
stefanrousseau 3:26b3cc155f39 12 * Type Definitions
stefanrousseau 3:26b3cc155f39 13 ******************************************************/
stefanrousseau 3:26b3cc155f39 14 #define FLOW_FIELD_LEN_LIMIT 32
stefanrousseau 3:26b3cc155f39 15 // Flow Message Definition //
stefanrousseau 3:26b3cc155f39 16 typedef struct
stefanrousseau 3:26b3cc155f39 17 {
stefanrousseau 3:26b3cc155f39 18 char URL_start[256];
stefanrousseau 3:26b3cc155f39 19 char URL_end[256];
stefanrousseau 3:26b3cc155f39 20 char Device_ID[128];
stefanrousseau 3:26b3cc155f39 21
stefanrousseau 3:26b3cc155f39 22 float latitude;
stefanrousseau 3:26b3cc155f39 23 float longitude;
stefanrousseau 3:26b3cc155f39 24 long elevation;
stefanrousseau 3:26b3cc155f39 25 } Flow_datapoint_t;
stefanrousseau 3:26b3cc155f39 26
stefanrousseau 3:26b3cc155f39 27