mirror of
				https://github.com/KevinMidboe/TinyGSM.git
				synced 2025-10-29 18:00:18 +00:00 
			
		
		
		
	Re-aligned with vshymanskyy-master
This commit is contained in:
		| @@ -10,12 +10,12 @@ | ||||
|  | ||||
| // Select your modem: | ||||
| #define TINY_GSM_MODEM_SIM800 | ||||
| // #define TINY_GSM_MODEM_SIM808 | ||||
| // #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> | ||||
|  | ||||
| @@ -38,7 +38,7 @@ TinyGsmClient client(modem); | ||||
| const char server[] = "cdn.rawgit.com"; | ||||
| const char resource[] = "/vshymanskyy/tinygsm/master/extras/logo.txt"; | ||||
|  | ||||
| int port = 80; | ||||
| const int port = 80; | ||||
|  | ||||
| void setup() { | ||||
|   // Set console baud rate | ||||
| @@ -54,6 +54,10 @@ void setup() { | ||||
|   Serial.println(F("Initializing modem...")); | ||||
|   modem.restart(); | ||||
|  | ||||
|   String modemInfo = modem.getModemInfo(); | ||||
|   Serial.print("Modem: "); | ||||
|   Serial.println(modemInfo); | ||||
|  | ||||
|   // Unlock your SIM card with a PIN | ||||
|   //modem.simUnlock("1234"); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user