Another example update

This commit is contained in:
Sara Damiano
2019-05-23 12:39:04 -04:00
parent dc2d4b5881
commit 7e314292d4
6 changed files with 104 additions and 27 deletions

View File

@@ -31,7 +31,7 @@
// See all AT commands, if wanted
// #define DUMP_AT_COMMANDS
// See the debugging, if wanted
// Define the serial console for debug prints, if needed
#define TINY_GSM_DEBUG SerialMon
// Range to attempt to autobaud
@@ -70,8 +70,11 @@
// Your GPRS credentials
// Leave empty, if missing user or pass
const char apn[] = "YourAPN";
const char gprsUser[] = "";
const char gprsPass[] = "";
const char wifiSSID[] = "YourSSID";
const char wifiPass[] = "YourWiFiPass";
#include <TinyGsmClient.h>
@@ -98,6 +101,8 @@ void setup() {
DBG("Wait...");
// Set GSM module baud rate
TinyGsmAutoBaud(SerialAT,GSM_AUTOBAUD_MIN,GSM_AUTOBAUD_MAX);
//SerialAT.begin(9600);
delay(3000);
}

View File

@@ -46,7 +46,7 @@
// See all AT commands, if wanted
//#define DUMP_AT_COMMANDS
// See the debugging, if wanted
// Define the serial console for debug prints, if needed
//#define TINY_GSM_DEBUG Serial
//#define LOGGING // <- Logging is for the HTTP library

View File

@@ -33,7 +33,7 @@
// #define TINY_GSM_MODEM_SEQUANS_MONARCH
// Increase RX buffer to capture the entire response
// Chips without internal buffering (ESP8266)
// Chips without internal buffering (A6/A7, ESP8266, M590)
// need enough space in the buffer for the entire response
// else data will be lost (and the http library will fail).
#define TINY_GSM_RX_BUFFER 650
@@ -41,7 +41,7 @@
// See all AT commands, if wanted
//#define DUMP_AT_COMMANDS
// See the debugging, if wanted
// Define the serial console for debug prints, if needed
//#define TINY_GSM_DEBUG Serial
//#define LOGGING // <- Logging is for the HTTP library

View File

@@ -49,7 +49,7 @@
// See all AT commands, if wanted
// #define DUMP_AT_COMMANDS
// See the debugging, if wanted
// Define the serial console for debug prints, if needed
#define TINY_GSM_DEBUG SerialMon
// Range to attempt to autobaud

View File

@@ -30,6 +30,16 @@
// Increase RX buffer if needed
// #define TINY_GSM_RX_BUFFER 512
// See all AT commands, if wanted
// #define DUMP_AT_COMMANDS
// Define the serial console for debug prints, if needed
#define TINY_GSM_DEBUG SerialMon
// Range to attempt to autobaud
#define GSM_AUTOBAUD_MIN 9600
#define GSM_AUTOBAUD_MAX 115200
// Add a reception delay, if needed
// #define TINY_GSM_YIELD() { delay(1); }