ATT_SMS_System for home security system
Dependencies: FXOS8700CQ MODSERIAL mbed-rtos mbed
Fork of ATT_Cellular_IOT_Button by
config_me.h@23:d6ceeb6d85ed, 2016-07-13 (annotated)
- Committer:
- stefanrousseau
- Date:
- Wed Jul 13 19:53:44 2016 +0000
- Revision:
- 23:d6ceeb6d85ed
- Parent:
- 21:d0038d14ee7c
- Child:
- 50:8ac42961458c
Added text to config_me. Also moved the sensor update definition there.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
JMF | 2:0e2ef866af95 | 1 | #ifndef __CONFIG_ME_H_ |
JMF | 2:0e2ef866af95 | 2 | #define __CONFIG_ME_H_ |
JMF | 2:0e2ef866af95 | 3 | |
JMF | 2:0e2ef866af95 | 4 | // User must set these for own context: |
fkellermavnet | 21:d0038d14ee7c | 5 | |
fkellermavnet | 21:d0038d14ee7c | 6 | // This is the server's base URL name. Example "www.google.com" |
stefanrousseau | 23:d6ceeb6d85ed | 7 | // Note that when you Fork a FLOW, it will typically assign either |
stefanrousseau | 23:d6ceeb6d85ed | 8 | // "run-east.att.io" or "run-west.att.io", so be sure to check this. |
stefanrousseau | 12:7c94ec5069dc | 9 | static const char * MY_SERVER_URL = "run-west.att.io"; |
fkellermavnet | 21:d0038d14ee7c | 10 | |
stefanrousseau | 23:d6ceeb6d85ed | 11 | // These are FLOW fields from the Endpoints tab: |
stefanrousseau | 12:7c94ec5069dc | 12 | #define FLOW_BASE_URL "/1e464b19cdcde/774c88d68202/86694923d5bf28a/in/flow" |
stefanrousseau | 12:7c94ec5069dc | 13 | #define FLOW_INPUT_NAME "/climate" |
fkellermavnet | 21:d0038d14ee7c | 14 | |
stefanrousseau | 23:d6ceeb6d85ed | 15 | // Unless you want to use a different protocol, this field should be left as is: |
stefanrousseau | 12:7c94ec5069dc | 16 | #define FLOW_URL_TYPE " HTTP/1.1\r\nHost: " |
stefanrousseau | 12:7c94ec5069dc | 17 | |
stefanrousseau | 23:d6ceeb6d85ed | 18 | // This identifier specifies with which FLOW device you are communicating. |
stefanrousseau | 23:d6ceeb6d85ed | 19 | // If you only have one devive there then you can just leave this as is. |
stefanrousseau | 23:d6ceeb6d85ed | 20 | // Once your FLOW device has been initialized (Virtual Device Initialize clicked), |
stefanrousseau | 23:d6ceeb6d85ed | 21 | // the Virtual Device will show up in M2X. This is its "DEVICE SERIAL" field |
fkellermavnet | 21:d0038d14ee7c | 22 | #define FLOW_DEVICE_NAME "vstarterkit001" |
fkellermavnet | 21:d0038d14ee7c | 23 | |
stefanrousseau | 23:d6ceeb6d85ed | 24 | // This constant defines how often sensors are read and sent up to FLOW |
stefanrousseau | 23:d6ceeb6d85ed | 25 | #define SENSOR_UPDATE_INTERVAL_MS 5000; //5 seconds |
stefanrousseau | 23:d6ceeb6d85ed | 26 | |
stefanrousseau | 23:d6ceeb6d85ed | 27 | // Specify here how many sensor parameters you want reported to FLOW. |
stefanrousseau | 23:d6ceeb6d85ed | 28 | // You can use only the temperature and humidity from the shield HTS221 |
stefanrousseau | 23:d6ceeb6d85ed | 29 | // or you can add the reading of the FXO8700CQ motion sensor on the FRDM-K64F board |
stefanrousseau | 23:d6ceeb6d85ed | 30 | // or if you have a SiLabs PMOD plugged into the shield, you can add its proximity sensor, |
stefanrousseau | 23:d6ceeb6d85ed | 31 | // UV light, visible ambient light and infrared ambient light readings |
stefanrousseau | 12:7c94ec5069dc | 32 | #define TEMP_HUMIDITY_ONLY 1 |
stefanrousseau | 12:7c94ec5069dc | 33 | #define TEMP_HUMIDITY_ACCELEROMETER 2 |
stefanrousseau | 12:7c94ec5069dc | 34 | #define TEMP_HUMIDITY_ACCELEROMETER_PMODSENSORS 3 |
stefanrousseau | 23:d6ceeb6d85ed | 35 | static int iSensorsToReport = TEMP_HUMIDITY_ONLY; //modify this to change your selection |
stefanrousseau | 12:7c94ec5069dc | 36 | |
fkellermavnet | 21:d0038d14ee7c | 37 | // This is the APN name for the cellular network, you will need to change this, check the instructions included with your SIM card kit: |
stefanrousseau | 12:7c94ec5069dc | 38 | static const char * MY_APN_STR = "m2m.com.attz"; |
fkellermavnet | 21:d0038d14ee7c | 39 | |
fkellermavnet | 21:d0038d14ee7c | 40 | //This is for normal HTTP. If you want to use TCP to a specific port, change that here: |
fkellermavnet | 21:d0038d14ee7c | 41 | static const char * MY_PORT_STR = "80"; |
JMF | 2:0e2ef866af95 | 42 | |
JMF | 2:0e2ef866af95 | 43 | #endif |