![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
FRDM-K64F, Avnet M14A2A, Grove Shield, to create smart home system. In use with AT&Ts M2x & Flow.
Dependencies: mbed FXOS8700CQ MODSERIAL
Diff: main.cpp
- Revision:
- 71:45a5e426df81
- Parent:
- 70:24d5800f27be
- Child:
- 72:b500e1507b5f
diff -r 24d5800f27be -r 45a5e426df81 main.cpp --- a/main.cpp Thu Aug 11 07:40:45 2016 +0000 +++ b/main.cpp Thu Aug 11 17:04:09 2016 +0000 @@ -57,7 +57,13 @@ .Virtual_Sensor5 = "0", .Virtual_Sensor6 = "0", .Virtual_Sensor7 = "0", - .Virtual_Sensor8 = "0" + .Virtual_Sensor8 = "0", + .GPS_Valid = "0", + .GPS_Latitude = "0", + .GPS_Longitude = "0", + .GPS_Altitude = "0", + .GPS_Speed = "0", + .GPS_Course = "0" }; void GenerateModemString(char * modem_string) @@ -76,7 +82,7 @@ } case TEMP_HUMIDITY_ACCELEROMETER_GPS: { - sprintf(modem_string, "GET %s%s?serial=%s&temp=%s&humidity=%s&accelX=%s&accelY=%s&accelZ=%s %s%s\r\n\r\n", FLOW_BASE_URL, FLOW_INPUT_NAME, FLOW_DEVICE_NAME, SENSOR_DATA.Temperature, SENSOR_DATA.Humidity, SENSOR_DATA.AccelX,SENSOR_DATA.AccelY,SENSOR_DATA.AccelZ, FLOW_URL_TYPE, MY_SERVER_URL); + sprintf(modem_string, "GET %s%s?serial=%s&temp=%s&humidity=%s&accelX=%s&accelY=%s&accelZ=%s&gps_valid=%s&latitude=%s&longitude=%s&altitude=%s&speed=%s&course=%s %s%s\r\n\r\n", FLOW_BASE_URL, FLOW_INPUT_NAME, FLOW_DEVICE_NAME, SENSOR_DATA.Temperature, SENSOR_DATA.Humidity, SENSOR_DATA.AccelX,SENSOR_DATA.AccelY,SENSOR_DATA.AccelZ,SENSOR_DATA.GPS_Valid,SENSOR_DATA.GPS_Latitude,SENSOR_DATA.GPS_Longitude,SENSOR_DATA.GPS_Altitude,SENSOR_DATA.GPS_Speed,SENSOR_DATA.GPS_Course, FLOW_URL_TYPE, MY_SERVER_URL); break; } case TEMP_HUMIDITY_ACCELEROMETER_PMODSENSORS: