You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
922 B

/**************************************************************
*
* To run this tool you need StreamDebugger library:
* https://github.com/vshymanskyy/StreamDebugger
* or from http://librarymanager/all#StreamDebugger
*
* TinyGSM Getting Started guide:
* http://tiny.cc/tiny-gsm-readme
*
**************************************************************/
#include <TinyGsmClient.h>
#include <StreamDebugger.h>
// Use Hardware Serial on Mega, Leonardo, Micro
#define GsmSerial Serial1
// or Software Serial on Uno, Nano
//#include <SoftwareSerial.h>
//SoftwareSerial GsmSerial(2, 3); // RX, TX
StreamDebugger DebugSerial(GsmSerial, Serial);
TinyGsmClient gsm(DebugSerial);
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() {
}