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.

29 lines
612 B

8 years ago
  1. /**************************************************************
  2. *
  3. * To run this tool, you need to install StreamDebugger library:
  4. * https://github.com/vshymanskyy/StreamDebugger
  5. *
  6. **************************************************************/
  7. #include <TinyGsmClient.h>
  8. #include <StreamDebugger.h>
  9. StreamDebugger GsmSerial(Serial1, Serial);
  10. GsmClient gsm(GsmSerial);
  11. void setup() {
  12. // Set console baud rate
  13. Serial.begin(115200);
  14. delay(10);
  15. // Set GSM module baud rate
  16. GsmSerial.begin(115200);
  17. delay(3000);
  18. // Return to factory configuration
  19. gsm.factoryDefault();
  20. }
  21. void loop() {
  22. }