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
Diff: Flow_parameters.h
- Revision:
- 3:26b3cc155f39
- Child:
- 4:f83bedd9cab4
diff -r 0e2ef866af95 -r 26b3cc155f39 Flow_parameters.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Flow_parameters.h Sun Jul 10 09:12:33 2016 +0000
@@ -0,0 +1,40 @@
+/******************************************************
+ * Constants
+ ******************************************************/
+
+
+//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");
+#define FLOW_CALLBACK_URL_START "GET /f653d97537235/a31c2684a02c/d35e42196968fd6/in/flow/climate"
+#define FLOW_DEVICE_ID "e5ee19804bd500c8fe69a809342384c2"
+#define FLOW_CALLBACK_URL_END "HTTP/1.1 Host: run-east.att.io:80 Accept: */*\r\n\r\n"
+
+/******************************************************
+ * Type Definitions
+ ******************************************************/
+#define SENSOR_FIELD_LEN_LIMIT 32
+typedef struct
+{
+ char Temperature[SENSOR_FIELD_LEN_LIMIT];
+ char Humidity[SENSOR_FIELD_LEN_LIMIT];
+ char AccelX[SENSOR_FIELD_LEN_LIMIT];
+ char AccelY[SENSOR_FIELD_LEN_LIMIT];
+ char AccelZ[SENSOR_FIELD_LEN_LIMIT];
+ char AmbientLight[SENSOR_FIELD_LEN_LIMIT];
+ char UVindex[SENSOR_FIELD_LEN_LIMIT];
+ char Proximity[SENSOR_FIELD_LEN_LIMIT];
+} K64F_Sensors_t ;
+
+#define FLOW_FIELD_LEN_LIMIT 32
+// Flow Message Definition //
+typedef struct
+{
+ char URL_start[256];
+ char URL_end[256];
+ char Device_ID[128];
+
+ float latitude;
+ float longitude;
+ long elevation;
+} Flow_datapoint_t;
+
+

