Avnet AT&T IoT Starter Kit demo for Pubnub

Dependencies:   FXOS8700CQ mbed

Committer:
fkellermavnet
Date:
Wed Jul 13 18:34:56 2016 +0000
Revision:
21:d0038d14ee7c
Parent:
13:df9c49662797
Child:
23:d6ceeb6d85ed
Cleaned up config_me.h a little and added some comments for the user variables.  More comments need to be added.  Cleaned up some of my unused debug code at the bottom of main().

Who changed what in which revision?

UserRevisionLine numberNew 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 12:7c94ec5069dc 7 static const char * MY_SERVER_URL = "run-west.att.io";
fkellermavnet 21:d0038d14ee7c 8
fkellermavnet 21:d0038d14ee7c 9 // These are FLOW variables that must be read from your own FLOW account and placed here:
stefanrousseau 12:7c94ec5069dc 10 #define FLOW_BASE_URL "/1e464b19cdcde/774c88d68202/86694923d5bf28a/in/flow"
stefanrousseau 12:7c94ec5069dc 11 #define FLOW_INPUT_NAME "/climate"
fkellermavnet 21:d0038d14ee7c 12
fkellermavnet 21:d0038d14ee7c 13 // This in most cases should be left alone but is here if you want to talk a differnet protocol:
stefanrousseau 12:7c94ec5069dc 14 #define FLOW_URL_TYPE " HTTP/1.1\r\nHost: "
stefanrousseau 12:7c94ec5069dc 15
fkellermavnet 21:d0038d14ee7c 16 // This just needs to be a unique identifier 1 for each board that talks to each FLOW account.
fkellermavnet 21:d0038d14ee7c 17 // If you only have one board then you can just leave this alone but you have to use this
fkellermavnet 21:d0038d14ee7c 18 // identifier in your FLOW setup for identification.
fkellermavnet 21:d0038d14ee7c 19 #define FLOW_DEVICE_NAME "vstarterkit001"
fkellermavnet 21:d0038d14ee7c 20
fkellermavnet 21:d0038d14ee7c 21 // These are for?
stefanrousseau 12:7c94ec5069dc 22 #define TEMP_HUMIDITY_ONLY 1
stefanrousseau 12:7c94ec5069dc 23 #define TEMP_HUMIDITY_ACCELEROMETER 2
stefanrousseau 12:7c94ec5069dc 24 #define TEMP_HUMIDITY_ACCELEROMETER_PMODSENSORS 3
stefanrousseau 12:7c94ec5069dc 25
fkellermavnet 21:d0038d14ee7c 26 // 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 27 static const char * MY_APN_STR = "m2m.com.attz";
fkellermavnet 21:d0038d14ee7c 28
fkellermavnet 21:d0038d14ee7c 29 //This is for normal HTTP. If you want to use TCP to a specific port, change that here:
fkellermavnet 21:d0038d14ee7c 30 static const char * MY_PORT_STR = "80";
JMF 2:0e2ef866af95 31
JMF 2:0e2ef866af95 32 #endif