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@7:489835c87d95, 2016-07-11 (annotated)
- Committer:
- stefanrousseau
- Date:
- Mon Jul 11 22:07:19 2016 +0000
- Revision:
- 7:489835c87d95
- Parent:
- 4:f83bedd9cab4
Changed device ID to serial
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 | 7:489835c87d95 | 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 | 7:489835c87d95 | 6 | #define FLOW_CALLBACK_URL_START "GET \r\n/f653d97537235/a31c2684a02c/d35e42196968fd6/in/flow/climate" |
| stefanrousseau | 7:489835c87d95 | 7 | #define FLOW_CALLBACK_URL_END "\r\n HTTP/1.1 Host: run-east.att.io:80 Accept: */*\r\n\r\n" |
| stefanrousseau | 3:26b3cc155f39 | 8 | |
| stefanrousseau | 3:26b3cc155f39 | 9 | /****************************************************** |
| stefanrousseau | 3:26b3cc155f39 | 10 | * Type Definitions |
| stefanrousseau | 3:26b3cc155f39 | 11 | ******************************************************/ |
| stefanrousseau | 3:26b3cc155f39 | 12 | #define FLOW_FIELD_LEN_LIMIT 32 |
| stefanrousseau | 3:26b3cc155f39 | 13 | // Flow Message Definition // |
| stefanrousseau | 3:26b3cc155f39 | 14 | typedef struct |
| stefanrousseau | 3:26b3cc155f39 | 15 | { |
| stefanrousseau | 3:26b3cc155f39 | 16 | char URL_start[256]; |
| stefanrousseau | 3:26b3cc155f39 | 17 | char URL_end[256]; |
| stefanrousseau | 3:26b3cc155f39 | 18 | char Device_ID[128]; |
| stefanrousseau | 3:26b3cc155f39 | 19 | |
| stefanrousseau | 3:26b3cc155f39 | 20 | float latitude; |
| stefanrousseau | 3:26b3cc155f39 | 21 | float longitude; |
| stefanrousseau | 3:26b3cc155f39 | 22 | long elevation; |
| stefanrousseau | 3:26b3cc155f39 | 23 | } Flow_datapoint_t; |
| stefanrousseau | 3:26b3cc155f39 | 24 | |
| stefanrousseau | 3:26b3cc155f39 | 25 |

