Update example
This commit is contained in:
@@ -45,7 +45,9 @@
|
||||
// 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).
|
||||
#ifndef TINY_GSM_RX_BUFFER
|
||||
#define TINY_GSM_RX_BUFFER 1024
|
||||
#endif
|
||||
|
||||
// See all AT commands, if wanted
|
||||
// #define DUMP_AT_COMMANDS
|
||||
@@ -106,7 +108,7 @@ const char resource[] = "/TinyGSM/logo.txt";
|
||||
TinyGsm modem(SerialAT);
|
||||
#endif
|
||||
|
||||
#ifdef USE_SSL
|
||||
#ifdef USE_SSL && defined TINY_GSM_MODEM_HAS_SSL
|
||||
TinyGsmClientSecure client(modem);
|
||||
const int port = 443;
|
||||
#else
|
||||
|
@@ -48,7 +48,7 @@ void setup() {
|
||||
delay(10);
|
||||
|
||||
// Set GSM module baud rate
|
||||
SerialAT.begin(115200);
|
||||
SerialAT.begin(9600);
|
||||
delay(3000);
|
||||
|
||||
if (!modem.init()) {
|
||||
|
Reference in New Issue
Block a user