A library for talking to Multi-Tech's Cellular SocketModem Devices.
Dependents: M2X_dev axeda_wrapper_dev MTS_M2x_Example1 MTS_Cellular_Connect_Example ... more
Diff: wifi/Wifi.cpp
- Revision:
- 135:960c0b523f88
- Parent:
- 132:165b3a1084bd
- Child:
- 136:0937dce3630b
--- a/wifi/Wifi.cpp Fri Jan 03 06:28:20 2014 +0000 +++ b/wifi/Wifi.cpp Fri Jan 03 22:32:01 2014 +0000 @@ -1,7 +1,7 @@ #include "Wifi.h" #include <string> -#if 1 +#if 0 //Enable debug #include <cstdio> #define DBG(x, ...) std::printf("Line: %d %s \t[Wifi : DBG]"x"\r\n", __LINE__, __FILE__, ##__VA_ARGS__); @@ -132,7 +132,7 @@ //join my_network printf("[DEBUG] Making SSID Connection Attempt. SSID[%s]\r\n", _ssid.c_str()); - std::string result = sendCommand("join " + _ssid, 15000, "Listen"); + std::string result = sendCommand("join " + _ssid, 15000, "GW="); //printf("Connect Status: %s\n\r", result.c_str()); //Check whether connection was successful