mirror of
				https://github.com/KevinMidboe/TinyGSM.git
				synced 2025-10-29 18:00:18 +00:00 
			
		
		
		
	Added all possible modems to examples
This commit is contained in:
		| @@ -32,7 +32,10 @@ | |||||||
| #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_A7 | ||||||
| // #define TINY_GSM_MODEM_M590 | // #define TINY_GSM_MODEM_M590 | ||||||
|  | // #define TINY_GSM_MODEM_ESP8266 | ||||||
|  | // #define TINY_GSM_MODEM_XBEE  | ||||||
|  |  | ||||||
| #include <TinyGsmClient.h> | #include <TinyGsmClient.h> | ||||||
| #include <BlynkSimpleSIM800.h> | #include <BlynkSimpleSIM800.h> | ||||||
| @@ -81,4 +84,3 @@ void loop() | |||||||
| { | { | ||||||
|   Blynk.run(); |   Blynk.run(); | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -16,7 +16,10 @@ | |||||||
| #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_A7 | ||||||
| // #define TINY_GSM_MODEM_M590 | // #define TINY_GSM_MODEM_M590 | ||||||
|  | // #define TINY_GSM_MODEM_ESP8266 | ||||||
|  | // #define TINY_GSM_MODEM_XBEE  | ||||||
|  |  | ||||||
| // Increase RX buffer | // Increase RX buffer | ||||||
| #define TINY_GSM_RX_BUFFER 1030 | #define TINY_GSM_RX_BUFFER 1030 | ||||||
| @@ -175,4 +178,3 @@ void loop() { | |||||||
|     delay(1000); |     delay(1000); | ||||||
|   } |   } | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -29,7 +29,10 @@ | |||||||
| #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_A7 | ||||||
| // #define TINY_GSM_MODEM_M590 | // #define TINY_GSM_MODEM_M590 | ||||||
|  | // #define TINY_GSM_MODEM_ESP8266 | ||||||
|  | // #define TINY_GSM_MODEM_XBEE  | ||||||
|  |  | ||||||
| #include <TinyGsmClient.h> | #include <TinyGsmClient.h> | ||||||
| #include <PubSubClient.h> | #include <PubSubClient.h> | ||||||
| @@ -145,4 +148,3 @@ void mqttCallback(char* topic, byte* payload, unsigned int len) { | |||||||
|     mqtt.publish(topicLedStatus, ledStatus ? "1" : "0"); |     mqtt.publish(topicLedStatus, ledStatus ? "1" : "0"); | ||||||
|   } |   } | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -12,7 +12,10 @@ | |||||||
| #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_A7 | ||||||
| // #define TINY_GSM_MODEM_M590 | // #define TINY_GSM_MODEM_M590 | ||||||
|  | // #define TINY_GSM_MODEM_ESP8266 | ||||||
|  | // #define TINY_GSM_MODEM_XBEE  | ||||||
|  |  | ||||||
| #include <TinyGsmClient.h> | #include <TinyGsmClient.h> | ||||||
|  |  | ||||||
| @@ -109,4 +112,3 @@ void loop() { | |||||||
|     delay(1000); |     delay(1000); | ||||||
|   } |   } | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -11,7 +11,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_A7 | ||||||
| // #define TINY_GSM_MODEM_M590 | // #define TINY_GSM_MODEM_M590 | ||||||
|  | // #define TINY_GSM_MODEM_ESP8266 | ||||||
|  | // #define TINY_GSM_MODEM_XBEE  | ||||||
|  |  | ||||||
| #include <TinyGsmClient.h> | #include <TinyGsmClient.h> | ||||||
|  |  | ||||||
| @@ -86,4 +90,3 @@ void loop() { | |||||||
|     delay(0); |     delay(0); | ||||||
|   } |   } | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -13,7 +13,10 @@ | |||||||
| #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_A7 | ||||||
| // #define TINY_GSM_MODEM_M590 | // #define TINY_GSM_MODEM_M590 | ||||||
|  | // #define TINY_GSM_MODEM_ESP8266 | ||||||
|  | // #define TINY_GSM_MODEM_XBEE  | ||||||
|  |  | ||||||
| // Increase buffer fo see less commands | // Increase buffer fo see less commands | ||||||
| #define TINY_GSM_RX_BUFFER 256 | #define TINY_GSM_RX_BUFFER 256 | ||||||
| @@ -151,4 +154,3 @@ void loop() { | |||||||
|     delay(1000); |     delay(1000); | ||||||
|   } |   } | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -12,7 +12,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_A7 | ||||||
| // #define TINY_GSM_MODEM_M590 | // #define TINY_GSM_MODEM_M590 | ||||||
|  | // #define TINY_GSM_MODEM_ESP8266 | ||||||
|  | // #define TINY_GSM_MODEM_XBEE  | ||||||
|  |  | ||||||
| #include <TinyGsmClient.h> | #include <TinyGsmClient.h> | ||||||
| #include <StreamDebugger.h> | #include <StreamDebugger.h> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user