Add more module options
This commit is contained in:
@@ -30,9 +30,11 @@
|
|||||||
|
|
||||||
// Select your modem:
|
// Select your modem:
|
||||||
#define TINY_GSM_MODEM_SIM800
|
#define TINY_GSM_MODEM_SIM800
|
||||||
//#define TINY_GSM_MODEM_SIM900
|
// #define TINY_GSM_MODEM_SIM900
|
||||||
//#define TINY_GSM_MODEM_A6
|
// #define TINY_GSM_MODEM_A6
|
||||||
//#define TINY_GSM_MODEM_M590
|
// #define TINY_GSM_MODEM_A7
|
||||||
|
// #define TINY_GSM_MODEM_M590
|
||||||
|
// #define TINY_GSM_MODEM_ESP8266
|
||||||
|
|
||||||
#include <TinyGsmClient.h>
|
#include <TinyGsmClient.h>
|
||||||
#include <BlynkSimpleSIM800.h>
|
#include <BlynkSimpleSIM800.h>
|
||||||
|
|||||||
@@ -14,9 +14,11 @@
|
|||||||
|
|
||||||
// Select your modem:
|
// Select your modem:
|
||||||
#define TINY_GSM_MODEM_SIM800
|
#define TINY_GSM_MODEM_SIM800
|
||||||
//#define TINY_GSM_MODEM_SIM900
|
// #define TINY_GSM_MODEM_SIM900
|
||||||
//#define TINY_GSM_MODEM_A6
|
// #define TINY_GSM_MODEM_A6
|
||||||
//#define TINY_GSM_MODEM_M590
|
// #define TINY_GSM_MODEM_A7
|
||||||
|
// #define TINY_GSM_MODEM_M590
|
||||||
|
// #define TINY_GSM_MODEM_ESP8266
|
||||||
|
|
||||||
// Increase RX buffer
|
// Increase RX buffer
|
||||||
#define TINY_GSM_RX_BUFFER 1030
|
#define TINY_GSM_RX_BUFFER 1030
|
||||||
@@ -126,7 +128,7 @@ void loop() {
|
|||||||
//Serial.println(line); // Uncomment this to show response header
|
//Serial.println(line); // Uncomment this to show response header
|
||||||
line.toLowerCase();
|
line.toLowerCase();
|
||||||
if (line.startsWith("content-length:")) {
|
if (line.startsWith("content-length:")) {
|
||||||
contentLength = line.substring(line.lastIndexOf(':') + 1).toInt();
|
contentLength = line.substring(line.lastIndexOf(':') + 1).toInt();
|
||||||
} else if (line.length() == 0) {
|
} else if (line.length() == 0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,9 +27,11 @@
|
|||||||
|
|
||||||
// Select your modem:
|
// Select your modem:
|
||||||
#define TINY_GSM_MODEM_SIM800
|
#define TINY_GSM_MODEM_SIM800
|
||||||
//#define TINY_GSM_MODEM_SIM900
|
// #define TINY_GSM_MODEM_SIM900
|
||||||
//#define TINY_GSM_MODEM_A6
|
// #define TINY_GSM_MODEM_A6
|
||||||
//#define TINY_GSM_MODEM_M590
|
// #define TINY_GSM_MODEM_A7
|
||||||
|
// #define TINY_GSM_MODEM_M590
|
||||||
|
// #define TINY_GSM_MODEM_ESP8266
|
||||||
|
|
||||||
#include <TinyGsmClient.h>
|
#include <TinyGsmClient.h>
|
||||||
#include <PubSubClient.h>
|
#include <PubSubClient.h>
|
||||||
|
|||||||
@@ -10,9 +10,11 @@
|
|||||||
|
|
||||||
// Select your modem:
|
// Select your modem:
|
||||||
#define TINY_GSM_MODEM_SIM800
|
#define TINY_GSM_MODEM_SIM800
|
||||||
//#define TINY_GSM_MODEM_SIM900
|
// #define TINY_GSM_MODEM_SIM900
|
||||||
//#define TINY_GSM_MODEM_A6
|
// #define TINY_GSM_MODEM_A6
|
||||||
//#define TINY_GSM_MODEM_M590
|
// #define TINY_GSM_MODEM_A7
|
||||||
|
// #define TINY_GSM_MODEM_M590
|
||||||
|
// #define TINY_GSM_MODEM_ESP8266
|
||||||
|
|
||||||
#include <TinyGsmClient.h>
|
#include <TinyGsmClient.h>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user