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.

33 lines
727 B

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