mirror of
				https://github.com/KevinMidboe/TinyGSM.git
				synced 2025-10-29 18:00:18 +00:00 
			
		
		
		
	Add tools
This commit is contained in:
		
							
								
								
									
										36
									
								
								tools/AT_Debug/AT_Debug.ino
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								tools/AT_Debug/AT_Debug.ino
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,36 @@ | ||||
| /************************************************************** | ||||
|  * | ||||
|  * To run this tool, you need to install StreamDebugger library: | ||||
|  *   https://github.com/vshymanskyy/StreamDebugger | ||||
|  * | ||||
|  **************************************************************/ | ||||
|  | ||||
| #include <TinyGsmClient.h> | ||||
| #include <StreamDebugger.h> | ||||
|  | ||||
| char apn[]  = "YourAPN"; | ||||
| char user[] = ""; | ||||
| char pass[] = ""; | ||||
|  | ||||
| StreamDebugger GsmSerial(Serial1, Serial); | ||||
| GsmClient gsm(GsmSerial); | ||||
|  | ||||
| void setup() { | ||||
|   // Set console baud rate | ||||
|   Serial.begin(115200); | ||||
|   delay(10); | ||||
|  | ||||
|   // Set GSM module baud rate | ||||
|   GsmSerial.begin(115200); | ||||
|   delay(3000); | ||||
|  | ||||
|   gsm.networkConnect(apn, user, pass); | ||||
|  | ||||
|   // Access AT commands from Serial | ||||
|   GsmSerial.directAccess(); | ||||
| } | ||||
|  | ||||
| void loop() { | ||||
|  | ||||
| } | ||||
|  | ||||
							
								
								
									
										29
									
								
								tools/FactoryReset/FactoryReset.ino
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								tools/FactoryReset/FactoryReset.ino
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,29 @@ | ||||
| /************************************************************** | ||||
|  * | ||||
|  * To run this tool, you need to install StreamDebugger library: | ||||
|  *   https://github.com/vshymanskyy/StreamDebugger | ||||
|  * | ||||
|  **************************************************************/ | ||||
|  | ||||
| #include <TinyGsmClient.h> | ||||
| #include <StreamDebugger.h> | ||||
|  | ||||
| StreamDebugger GsmSerial(Serial1, Serial); | ||||
| GsmClient gsm(GsmSerial); | ||||
|  | ||||
| void setup() { | ||||
|   // Set console baud rate | ||||
|   Serial.begin(115200); | ||||
|   delay(10); | ||||
|  | ||||
|   // Set GSM module baud rate | ||||
|   GsmSerial.begin(115200); | ||||
|   delay(3000); | ||||
|  | ||||
|   // Return to factory configuration | ||||
|   gsm.factoryDefault(); | ||||
| } | ||||
|  | ||||
| void loop() { | ||||
|  | ||||
| } | ||||
		Reference in New Issue
	
	Block a user