Browse Source

Typo

v_master
Sara Damiano 5 years ago
parent
commit
96c1fed3ef
5 changed files with 12 additions and 13 deletions
  1. +2
    -2
      examples/WebClient/WebClient.ino
  2. +0
    -3
      src/TinyGsmClientSIM7000.h
  3. +0
    -4
      src/TinyGsmClientSIM800.h
  4. +5
    -2
      src/TinyGsmClientSaraR4.h
  5. +5
    -2
      src/TinyGsmClientUBLOX.h

+ 2
- 2
examples/WebClient/WebClient.ino View File

@ -9,7 +9,7 @@
**************************************************************/ **************************************************************/
// Select your modem: // Select your modem:
#define TINY_GSM_MODEMs_SIM800
#define TINY_GSM_MODEM_SIM800
// #define TINY_GSM_MODEM_SIM808 // #define TINY_GSM_MODEM_SIM808
// #define TINY_GSM_MODEM_SIM868 // #define TINY_GSM_MODEM_SIM868
// #define TINY_GSM_MODEM_SIM900 // #define TINY_GSM_MODEM_SIM900
@ -65,7 +65,7 @@
// Your GPRS credentials // Your GPRS credentials
// Leave empty, if missing user or pass // Leave empty, if missing user or pass
const char apn[] = "hologram";
const char apn[] = "YourAPN";
const char gprsUser[] = ""; const char gprsUser[] = "";
const char gprsPass[] = ""; const char gprsPass[] = "";
const char wifiSSID[] = "YourSSID"; const char wifiSSID[] = "YourSSID";


+ 0
- 3
src/TinyGsmClientSIM7000.h View File

@ -145,9 +145,6 @@ public:
TINY_GSM_YIELD(); TINY_GSM_YIELD();
rx.clear(); rx.clear();
sock_connected = at->modemConnect(host, port, mux, true); sock_connected = at->modemConnect(host, port, mux, true);
// sock_connected = at->modemConnect(host, port, &mux, true);
// at->sockets[mux] = this;
// TODO: When is the socket attached?
return sock_connected; return sock_connected;
} }
}; };


+ 0
- 4
src/TinyGsmClientSIM800.h View File

@ -146,9 +146,6 @@ public:
TINY_GSM_YIELD(); TINY_GSM_YIELD();
rx.clear(); rx.clear();
sock_connected = at->modemConnect(host, port, mux, true); sock_connected = at->modemConnect(host, port, mux, true);
// sock_connected = at->modemConnect(host, port, &mux, true);
// at->sockets[mux] = this;
// TODO: When is the socket attached?
return sock_connected; return sock_connected;
} }
}; };
@ -483,7 +480,6 @@ TINY_GSM_MODEM_WAIT_FOR_NETWORK()
return TinyGsmIpFromString(getLocalIP()); return TinyGsmIpFromString(getLocalIP());
} }
/* /*
* Phone Call functions * Phone Call functions
*/ */


+ 5
- 2
src/TinyGsmClientSaraR4.h View File

@ -163,10 +163,13 @@ public:
stop(); stop();
TINY_GSM_YIELD(); TINY_GSM_YIELD();
rx.clear(); rx.clear();
// sock_connected = at->modemConnect(host, port, mux, true);
uint8_t oldMux = mux;
sock_connected = at->modemConnect(host, port, &mux, true); sock_connected = at->modemConnect(host, port, &mux, true);
if (mux != oldMux) {
DBG("WARNING: Mux number changed from", oldMux, "to", mux);
at->sockets[oldMux] = NULL;
}
at->sockets[mux] = this; at->sockets[mux] = this;
// TODO: When is the socket attached?
at->maintain(); at->maintain();
return sock_connected; return sock_connected;
} }


+ 5
- 2
src/TinyGsmClientUBLOX.h View File

@ -147,10 +147,13 @@ public:
stop(); stop();
TINY_GSM_YIELD(); TINY_GSM_YIELD();
rx.clear(); rx.clear();
// sock_connected = at->modemConnect(host, port, mux, true);
uint8_t oldMux = mux;
sock_connected = at->modemConnect(host, port, &mux, true); sock_connected = at->modemConnect(host, port, &mux, true);
if (mux != oldMux) {
DBG("WARNING: Mux number changed from", oldMux, "to", mux);
at->sockets[oldMux] = NULL;
}
at->sockets[mux] = this; at->sockets[mux] = this;
// TODO: When is the socket attached?
at->maintain(); at->maintain();
return sock_connected; return sock_connected;
} }


Loading…
Cancel
Save