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

8 years ago
8 years ago
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. // Use Hardware Serial on Mega, Leonardo, Micro
  14. #define GsmSerial Serial1
  15. // or Software Serial on Uno, Nano
  16. //#include <SoftwareSerial.h>
  17. //SoftwareSerial GsmSerial(2, 3); // RX, TX
  18. StreamDebugger DebugSerial(GsmSerial, Serial);
  19. TinyGsmClient gsm(DebugSerial);
  20. void setup() {
  21. // Set console baud rate
  22. Serial.begin(115200);
  23. delay(10);
  24. // Set GSM module baud rate
  25. GsmSerial.begin(115200);
  26. delay(3000);
  27. // Return to factory configuration
  28. gsm.factoryDefault();
  29. }
  30. void loop() {
  31. }