Sample project to connect to AT&T M2X from the STM32 Nucleo + MTSAS Cellular SocketModem shield
Dependencies: M2XStreamClient jsonlite mbed
Fork of MTSAS_Cellular_Connect_M2X_Example_F411 by
Diff: main.cpp
- Revision:
- 4:8b02a6b67f4d
- Parent:
- 3:f22ad66e049e
- Child:
- 5:46e66c649006
- Child:
- 6:9c490265dd91
--- a/main.cpp Mon Jul 28 14:57:44 2014 +0000 +++ b/main.cpp Mon Jul 28 15:09:18 2014 +0000 @@ -3,7 +3,11 @@ int main(){ //Modify to match your apn if you are using an HSPA radio with a SIM card - const char APN[] = "internet"; + const char APN[] = ""; + + //Sets the log level to INFO, which is about midway on priority levels + //Possible levels: FATAL, ERROR, WARNING, INFO, DEBUG, TRACE + MTSLog::setLogLevel(MTSLog::INFO_LEVEL); /** STMicro Nucelo F401RE * The supported jumper configurations of the MTSAS do not line up with @@ -64,7 +68,7 @@ logError("Failed to ping google.com"); } if (radio->ping("www.google.com") == true) { - logInfo("Successfully pinged google.com"); + logInfo("Successfully pinged www.google.com"); break; } else { wait(1);