Added all possible modems to examples
This commit is contained in:
		| @@ -30,9 +30,12 @@ | ||||
|  | ||||
| // Select your modem: | ||||
| #define TINY_GSM_MODEM_SIM800 | ||||
| //#define TINY_GSM_MODEM_SIM900 | ||||
| //#define TINY_GSM_MODEM_A6 | ||||
| //#define TINY_GSM_MODEM_M590 | ||||
| // #define TINY_GSM_MODEM_SIM900 | ||||
| // #define TINY_GSM_MODEM_A6 | ||||
| // #define TINY_GSM_MODEM_A7 | ||||
| // #define TINY_GSM_MODEM_M590 | ||||
| // #define TINY_GSM_MODEM_ESP8266 | ||||
| // #define TINY_GSM_MODEM_XBEE  | ||||
|  | ||||
| #include <TinyGsmClient.h> | ||||
| #include <BlynkSimpleSIM800.h> | ||||
| @@ -81,4 +84,3 @@ void loop() | ||||
| { | ||||
|   Blynk.run(); | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -14,9 +14,12 @@ | ||||
|  | ||||
| // Select your modem: | ||||
| #define TINY_GSM_MODEM_SIM800 | ||||
| //#define TINY_GSM_MODEM_SIM900 | ||||
| //#define TINY_GSM_MODEM_A6 | ||||
| //#define TINY_GSM_MODEM_M590 | ||||
| // #define TINY_GSM_MODEM_SIM900 | ||||
| // #define TINY_GSM_MODEM_A6 | ||||
| // #define TINY_GSM_MODEM_A7 | ||||
| // #define TINY_GSM_MODEM_M590 | ||||
| // #define TINY_GSM_MODEM_ESP8266 | ||||
| // #define TINY_GSM_MODEM_XBEE  | ||||
|  | ||||
| // Increase RX buffer | ||||
| #define TINY_GSM_RX_BUFFER 1030 | ||||
| @@ -126,7 +129,7 @@ void loop() { | ||||
|     //Serial.println(line);    // Uncomment this to show response header | ||||
|     line.toLowerCase(); | ||||
|     if (line.startsWith("content-length:")) { | ||||
|       contentLength = line.substring(line.lastIndexOf(':') + 1).toInt();   | ||||
|       contentLength = line.substring(line.lastIndexOf(':') + 1).toInt(); | ||||
|     } else if (line.length() == 0) { | ||||
|       break; | ||||
|     } | ||||
| @@ -175,4 +178,3 @@ void loop() { | ||||
|     delay(1000); | ||||
|   } | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -27,9 +27,12 @@ | ||||
|  | ||||
| // Select your modem: | ||||
| #define TINY_GSM_MODEM_SIM800 | ||||
| //#define TINY_GSM_MODEM_SIM900 | ||||
| //#define TINY_GSM_MODEM_A6 | ||||
| //#define TINY_GSM_MODEM_M590 | ||||
| // #define TINY_GSM_MODEM_SIM900 | ||||
| // #define TINY_GSM_MODEM_A6 | ||||
| // #define TINY_GSM_MODEM_A7 | ||||
| // #define TINY_GSM_MODEM_M590 | ||||
| // #define TINY_GSM_MODEM_ESP8266 | ||||
| // #define TINY_GSM_MODEM_XBEE  | ||||
|  | ||||
| #include <TinyGsmClient.h> | ||||
| #include <PubSubClient.h> | ||||
| @@ -145,4 +148,3 @@ void mqttCallback(char* topic, byte* payload, unsigned int len) { | ||||
|     mqtt.publish(topicLedStatus, ledStatus ? "1" : "0"); | ||||
|   } | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -10,9 +10,12 @@ | ||||
|  | ||||
| // Select your modem: | ||||
| #define TINY_GSM_MODEM_SIM800 | ||||
| //#define TINY_GSM_MODEM_SIM900 | ||||
| //#define TINY_GSM_MODEM_A6 | ||||
| //#define TINY_GSM_MODEM_M590 | ||||
| // #define TINY_GSM_MODEM_SIM900 | ||||
| // #define TINY_GSM_MODEM_A6 | ||||
| // #define TINY_GSM_MODEM_A7 | ||||
| // #define TINY_GSM_MODEM_M590 | ||||
| // #define TINY_GSM_MODEM_ESP8266 | ||||
| // #define TINY_GSM_MODEM_XBEE  | ||||
|  | ||||
| #include <TinyGsmClient.h> | ||||
|  | ||||
| @@ -109,4 +112,3 @@ void loop() { | ||||
|     delay(1000); | ||||
|   } | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user