Rick McConney
/
TCPSend
TCP send example
Fork of StarterKit by
Revision 48:401a797a695f, committed 2017-02-02
- Comitter:
- elmkom
- Date:
- Thu Feb 02 15:41:15 2017 +0000
- Parent:
- 47:2f5c4c35aa36
- Commit message:
- republish
Changed in this revision
diff -r 2f5c4c35aa36 -r 401a797a695f Wnc.cpp --- a/Wnc.cpp Mon Jan 09 19:48:35 2017 +0000 +++ b/Wnc.cpp Thu Feb 02 15:41:15 2017 +0000 @@ -385,7 +385,7 @@ { char *reply; reply = send("ATE1",WNC_WAIT_TIME_MS); // Echo ON - char apn [32]; + char apn [64]; snprintf(apn,sizeof(apn),"AT%%PDNSET=1,%s,IP",MY_APN_STR); reply = send(apn, 2*WNC_WAIT_TIME_MS); // Set APN, cmd seems to take a little longer sometimes
diff -r 2f5c4c35aa36 -r 401a797a695f config_me.h --- a/config_me.h Mon Jan 09 19:48:35 2017 +0000 +++ b/config_me.h Thu Feb 02 15:41:15 2017 +0000 @@ -39,6 +39,7 @@ // This is the APN name for the cellular network, you will need to change this, check the instructions included with your SIM card kit: #define MY_APN_STR "m2m.com.attz" +//#define MY_APN_STR "foundrytxS2.com.attz" //#define MY_APN_STR "attiotdemo" //#define MY_APN_STR "nxtgenphone" //This is for normal HTTP. If you want to use TCP to a specific port, change that here:
diff -r 2f5c4c35aa36 -r 401a797a695f main.cpp --- a/main.cpp Mon Jan 09 19:48:35 2017 +0000 +++ b/main.cpp Thu Feb 02 15:41:15 2017 +0000 @@ -96,7 +96,7 @@ seqNum++; char data[len+1]; for(int i = 0;i<len;i++) - data[i] = 'a'; + data[i] = 'b'; data[len] = 0; sprintf(modem_string, "%s", data); }