Remote Writing IoT Data to Influx-DB over HTTP-API.
Fork of AvnetATT_shape_hackathon by
Diff: config_me.h
- Revision:
- 35:4a5d307b9692
- Parent:
- 31:d7c386d2e95a
- Child:
- 37:bb05aebd6139
--- a/config_me.h Sat Jul 23 01:10:53 2016 +0000 +++ b/config_me.h Tue Oct 10 13:21:06 2017 +0000 @@ -5,12 +5,13 @@ // This is the server's base URL name. Example "www.google.com" // Note that when you Fork a FLOW, it will typically assign either -// "run-east.att.io" or "run-west.att.io", so be sure to check this. -static const char * MY_SERVER_URL = "run-west.att.io"; +//static const char * MY_SERVER_URL = "influxdb.io"; +static const char * MY_SERVER_URL = "172.27.140.140"; // These are FLOW fields from the Endpoints tab: -#define FLOW_BASE_URL "/1e464b19cdcde/774c88d68202/86694923d5bf28a/in/flow" -#define FLOW_INPUT_NAME "/climate" +#define FLOW_BASE_URL "/" +#define FLOW_INPUT_NAME "write" + // Unless you want to use a different protocol, this field should be left as is: #define FLOW_URL_TYPE " HTTP/1.1\r\nHost: " @@ -19,7 +20,8 @@ // If you only have one devive there then you can just leave this as is. // Once your FLOW device has been initialized (Virtual Device Initialize clicked), // the Virtual Device will show up in M2X. This is its "DEVICE SERIAL" field -#define FLOW_DEVICE_NAME "vstarterkit001" +// https://runm-central.att.io/7112dfcbd9ae0/921b0008500b/b2f385c14622519/in/flow +#define FLOW_DEVICE_NAME "starterkit002" // This constant defines how often sensors are read and sent up to FLOW #define SENSOR_UPDATE_INTERVAL_MS 5000; //5 seconds @@ -34,10 +36,10 @@ #define TEMP_HUMIDITY_ACCELEROMETER_PMODSENSORS 3 static int iSensorsToReport = TEMP_HUMIDITY_ONLY; //modify this to change your selection -// This is the APN name for the cellular network, you will need to change this, check the instructions included with your SIM card kit: -static const char * MY_APN_STR = "m2m.com.attz"; +// This is the APN name for the cellular network +static const char * MY_APN_STR = "default"; //This is for normal HTTP. If you want to use TCP to a specific port, change that here: -static const char * MY_PORT_STR = "80"; +static const char * MY_PORT_STR = "8086"; #endif