ATT_SMS_System for home security system
Dependencies: FXOS8700CQ MODSERIAL mbed-rtos mbed
Fork of ATT_Cellular_IOT_Button by
config_me.h@68:d38834307b17, 2016-08-09 (annotated)
- Committer:
- rfinn
- Date:
- Tue Aug 09 19:23:11 2016 +0000
- Revision:
- 68:d38834307b17
- Parent:
- 58:c417fbc39c22
- Child:
- 69:a99e384b720f
prep for sharing;
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 | 50:8ac42961458c | 6 | #define BUF_SIZE_FOR_N_MAX_SOCKREAD (10) |
fkellermavnet | 50:8ac42961458c | 7 | #define MAX_WNC_SOCKREAD_PAYLOAD (1500) |
fkellermavnet | 50:8ac42961458c | 8 | |
fkellermavnet | 21:d0038d14ee7c | 9 | // This is the server's base URL name. Example "www.google.com" |
stefanrousseau | 24:bd480d2aade4 | 10 | // Note that when you Fork a FLOW, it will typically assign either |
stefanrousseau | 24:bd480d2aade4 | 11 | // "run-east.att.io" or "run-west.att.io", so be sure to check this. |
rfinn | 68:d38834307b17 | 12 | static const char * MY_SERVER_URL = "run-west.att.io"; // CHECK ME, might be different |
rfinn | 68:d38834307b17 | 13 | |
rfinn | 68:d38834307b17 | 14 | //This is for normal HTTP. If you want to use TCP to a specific port, change that here: |
rfinn | 68:d38834307b17 | 15 | static const char * MY_PORT_STR = "0000"; // CHANGE ME |
fkellermavnet | 21:d0038d14ee7c | 16 | |
stefanrousseau | 24:bd480d2aade4 | 17 | // These are FLOW fields from the Endpoints tab: |
rfinn | 68:d38834307b17 | 18 | #define FLOW_BASE_URL "/..../in/flow" // CHANGE ME |
rfinn | 68:d38834307b17 | 19 | #define FLOW_INPUT_NAME "/buttons" |
fkellermavnet | 21:d0038d14ee7c | 20 | |
stefanrousseau | 24:bd480d2aade4 | 21 | // Unless you want to use a different protocol, this field should be left as is: |
stefanrousseau | 12:7c94ec5069dc | 22 | #define FLOW_URL_TYPE " HTTP/1.1\r\nHost: " |
stefanrousseau | 12:7c94ec5069dc | 23 | |
stefanrousseau | 24:bd480d2aade4 | 24 | // This identifier specifies with which FLOW device you are communicating. |
stefanrousseau | 24:bd480d2aade4 | 25 | // If you only have one devive there then you can just leave this as is. |
stefanrousseau | 24:bd480d2aade4 | 26 | // Once your FLOW device has been initialized (Virtual Device Initialize clicked), |
stefanrousseau | 24:bd480d2aade4 | 27 | // the Virtual Device will show up in M2X. This is its "DEVICE SERIAL" field |
rfinn | 68:d38834307b17 | 28 | #define M2X_DEVICE_SERIAL "starterkit001" |
fkellermavnet | 21:d0038d14ee7c | 29 | |
stefanrousseau | 24:bd480d2aade4 | 30 | // This constant defines how often sensors are read and sent up to FLOW |
stefanrousseau | 24:bd480d2aade4 | 31 | #define SENSOR_UPDATE_INTERVAL_MS 5000; //5 seconds |
stefanrousseau | 24:bd480d2aade4 | 32 | |
fkellermavnet | 21:d0038d14ee7c | 33 | // 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 | 34 | static const char * MY_APN_STR = "m2m.com.attz"; |
fkellermavnet | 21:d0038d14ee7c | 35 | |
JMF | 2:0e2ef866af95 | 36 | #endif |