Version bump

Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
This commit is contained in:
Sara Damiano
2020-02-06 18:24:22 -05:00
parent d3d1083d8f
commit 5daa3efa82
10 changed files with 32 additions and 29 deletions

View File

@@ -48,7 +48,7 @@
#define TINY_GSM_RX_BUFFER 1024
// See all AT commands, if wanted
//#define DUMP_AT_COMMANDS
// #define DUMP_AT_COMMANDS
// Define the serial console for debug prints, if needed
#define TINY_GSM_DEBUG SerialMon
@@ -58,10 +58,10 @@
#define GSM_AUTOBAUD_MAX 115200
// Add a reception delay - may be needed for a fast processor at a slow baud rate
//#define TINY_GSM_YIELD() { delay(2); }
// #define TINY_GSM_YIELD() { delay(2); }
// Uncomment this if you want to use SSL
//#define USE_SSL
// #define USE_SSL
#define TINY_GSM_USE_GPRS true
#define TINY_GSM_USE_WIFI false
@@ -236,8 +236,8 @@ void loop() {
client.find("\r\n\r\n");
// Read data
unsigned long timeout = millis();
unsigned long bytesReceived = 0;
uint32_t timeout = millis();
uint32_t bytesReceived = 0;
while (client.connected() && millis() - timeout < 10000L) {
while (client.available()) {
char c = client.read();

View File

@@ -3,7 +3,7 @@
* DO NOT USE THIS - this is just a compilation test!
*
**************************************************************/
// #define TINY_GSM_MODEM_SIM800
#define TINY_GSM_MODEM_SIM800
#include <TinyGsmClient.h>
@@ -20,13 +20,12 @@ char resource[] = "something";
void setup() {
Serial.begin(115200);
delay(3000);
modem.restart();
}
void loop() {
// Test the basic functions
modem.init();
// modem.init();
modem.begin();
modem.setBaud(115200);
modem.testAT();
@@ -62,7 +61,7 @@ void loop() {
modem.gprsConnect("YourAPN", "", "");
#endif
#if defined(TINY_GSM_MODEM_HAS_WIFI)
modem.networkConnect("YourSSID", "YourPWD");
modem.networkConnect("YourSSID", "YourWiFiPass");
modem.waitForNetwork();
#endif