Browse Source

Update example

v_master
Sara Damiano 5 years ago
parent
commit
d3dd88d13b
2 changed files with 4 additions and 2 deletions
  1. +3
    -1
      tools/Diagnostics/Diagnostics.ino
  2. +1
    -1
      tools/FactoryReset/FactoryReset.ino

+ 3
- 1
tools/Diagnostics/Diagnostics.ino View File

@ -45,7 +45,9 @@
// Chips without internal buffering (A6/A7, ESP8266, M590) // Chips without internal buffering (A6/A7, ESP8266, M590)
// need enough space in the buffer for the entire response // need enough space in the buffer for the entire response
// else data will be lost (and the http library will fail). // else data will be lost (and the http library will fail).
#ifndef TINY_GSM_RX_BUFFER
#define TINY_GSM_RX_BUFFER 1024 #define TINY_GSM_RX_BUFFER 1024
#endif
// See all AT commands, if wanted // See all AT commands, if wanted
// #define DUMP_AT_COMMANDS // #define DUMP_AT_COMMANDS
@ -106,7 +108,7 @@ const char resource[] = "/TinyGSM/logo.txt";
TinyGsm modem(SerialAT); TinyGsm modem(SerialAT);
#endif #endif
#ifdef USE_SSL
#ifdef USE_SSL && defined TINY_GSM_MODEM_HAS_SSL
TinyGsmClientSecure client(modem); TinyGsmClientSecure client(modem);
const int port = 443; const int port = 443;
#else #else


+ 1
- 1
tools/FactoryReset/FactoryReset.ino View File

@ -48,7 +48,7 @@ void setup() {
delay(10); delay(10);
// Set GSM module baud rate // Set GSM module baud rate
SerialAT.begin(115200);
SerialAT.begin(9600);
delay(3000); delay(3000);
if (!modem.init()) { if (!modem.init()) {


Loading…
Cancel
Save