Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed FXOS8700CQ
Flow_parameters.h@3:26b3cc155f39, 2016-07-10 (annotated)
- Committer:
- stefanrousseau
- Date:
- Sun Jul 10 09:12:33 2016 +0000
- Revision:
- 3:26b3cc155f39
- Child:
- 4:f83bedd9cab4
Stefan added:; 1) Flow_parameters.h; 2) ms timer tick currently expires every 5 seconds; 3) function to parse values into sensor structure
Who changed what in which revision?
| User | Revision | Line number | New 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 SENSOR_FIELD_LEN_LIMIT 32 |
| stefanrousseau | 3:26b3cc155f39 | 15 | typedef struct |
| stefanrousseau | 3:26b3cc155f39 | 16 | { |
| stefanrousseau | 3:26b3cc155f39 | 17 | char Temperature[SENSOR_FIELD_LEN_LIMIT]; |
| stefanrousseau | 3:26b3cc155f39 | 18 | char Humidity[SENSOR_FIELD_LEN_LIMIT]; |
| stefanrousseau | 3:26b3cc155f39 | 19 | char AccelX[SENSOR_FIELD_LEN_LIMIT]; |
| stefanrousseau | 3:26b3cc155f39 | 20 | char AccelY[SENSOR_FIELD_LEN_LIMIT]; |
| stefanrousseau | 3:26b3cc155f39 | 21 | char AccelZ[SENSOR_FIELD_LEN_LIMIT]; |
| stefanrousseau | 3:26b3cc155f39 | 22 | char AmbientLight[SENSOR_FIELD_LEN_LIMIT]; |
| stefanrousseau | 3:26b3cc155f39 | 23 | char UVindex[SENSOR_FIELD_LEN_LIMIT]; |
| stefanrousseau | 3:26b3cc155f39 | 24 | char Proximity[SENSOR_FIELD_LEN_LIMIT]; |
| stefanrousseau | 3:26b3cc155f39 | 25 | } K64F_Sensors_t ; |
| stefanrousseau | 3:26b3cc155f39 | 26 | |
| stefanrousseau | 3:26b3cc155f39 | 27 | #define FLOW_FIELD_LEN_LIMIT 32 |
| stefanrousseau | 3:26b3cc155f39 | 28 | // Flow Message Definition // |
| stefanrousseau | 3:26b3cc155f39 | 29 | typedef struct |
| stefanrousseau | 3:26b3cc155f39 | 30 | { |
| stefanrousseau | 3:26b3cc155f39 | 31 | char URL_start[256]; |
| stefanrousseau | 3:26b3cc155f39 | 32 | char URL_end[256]; |
| stefanrousseau | 3:26b3cc155f39 | 33 | char Device_ID[128]; |
| stefanrousseau | 3:26b3cc155f39 | 34 | |
| stefanrousseau | 3:26b3cc155f39 | 35 | float latitude; |
| stefanrousseau | 3:26b3cc155f39 | 36 | float longitude; |
| stefanrousseau | 3:26b3cc155f39 | 37 | long elevation; |
| stefanrousseau | 3:26b3cc155f39 | 38 | } Flow_datapoint_t; |
| stefanrousseau | 3:26b3cc155f39 | 39 | |
| stefanrousseau | 3:26b3cc155f39 | 40 |

