From 4aadaf04ec468b99df25f5688fb4dcd8d3e63f44 Mon Sep 17 00:00:00 2001 From: Sara Damiano Date: Thu, 16 Apr 2020 00:16:25 -0400 Subject: [PATCH] All examples have 6s delay before start Signed-off-by: Sara Damiano --- examples/BlynkClient/BlynkClient.ino | 2 +- examples/FileDownload/FileDownload.ino | 2 +- examples/HttpClient/HttpClient.ino | 2 +- examples/HttpsClient/HttpsClient.ino | 2 +- examples/MqttClient/MqttClient.ino | 2 +- examples/WebClient/WebClient.ino | 2 +- examples/more/Hologram_Dash/Hologram_Dash.ino | 2 +- examples/more/Industruino/Industruino.ino | 2 +- examples/more/SIM800_SslSetCert/SIM800_SslSetCert.ino | 5 ++--- tools/AT_Debug/AT_Debug.ino | 2 +- tools/AT_Spy/AT_Spy.ino | 3 +-- tools/Diagnostics/Diagnostics.ino | 2 +- tools/FactoryReset/FactoryReset.ino | 2 +- tools/test_build/test_build.ino | 2 +- 14 files changed, 15 insertions(+), 17 deletions(-) diff --git a/examples/BlynkClient/BlynkClient.ino b/examples/BlynkClient/BlynkClient.ino index 20f98c0..b12117d 100644 --- a/examples/BlynkClient/BlynkClient.ino +++ b/examples/BlynkClient/BlynkClient.ino @@ -82,7 +82,7 @@ void setup() // Set GSM module baud rate SerialAT.begin(115200); - delay(3000); + delay(6000); // Restart takes quite some time // To skip it, call init() instead of restart() diff --git a/examples/FileDownload/FileDownload.ino b/examples/FileDownload/FileDownload.ino index ec1e5b5..1d75211 100644 --- a/examples/FileDownload/FileDownload.ino +++ b/examples/FileDownload/FileDownload.ino @@ -127,7 +127,7 @@ void setup() { // Set GSM module baud rate SerialAT.begin(115200); - delay(3000); + delay(6000); // Restart takes quite some time // To skip it, call init() instead of restart() diff --git a/examples/HttpClient/HttpClient.ino b/examples/HttpClient/HttpClient.ino index 98d222f..25af0a9 100644 --- a/examples/HttpClient/HttpClient.ino +++ b/examples/HttpClient/HttpClient.ino @@ -135,7 +135,7 @@ void setup() { // Set GSM module baud rate // TinyGsmAutoBaud(SerialAT,GSM_AUTOBAUD_MIN,GSM_AUTOBAUD_MAX); SerialAT.begin(9600); - delay(3000); + delay(6000); // Restart takes quite some time // To skip it, call init() instead of restart() diff --git a/examples/HttpsClient/HttpsClient.ino b/examples/HttpsClient/HttpsClient.ino index ace7da7..548414a 100644 --- a/examples/HttpsClient/HttpsClient.ino +++ b/examples/HttpsClient/HttpsClient.ino @@ -127,7 +127,7 @@ void setup() { // Set GSM module baud rate // TinyGsmAutoBaud(SerialAT,GSM_AUTOBAUD_MIN,GSM_AUTOBAUD_MAX); SerialAT.begin(9600); - delay(3000); + delay(6000); // Restart takes quite some time // To skip it, call init() instead of restart() diff --git a/examples/MqttClient/MqttClient.ino b/examples/MqttClient/MqttClient.ino index aa0876c..f338d32 100644 --- a/examples/MqttClient/MqttClient.ino +++ b/examples/MqttClient/MqttClient.ino @@ -179,7 +179,7 @@ void setup() { // Set GSM module baud rate // TinyGsmAutoBaud(SerialAT,GSM_AUTOBAUD_MIN,GSM_AUTOBAUD_MAX); SerialAT.begin(9600); - delay(3000); + delay(6000); // Restart takes quite some time // To skip it, call init() instead of restart() diff --git a/examples/WebClient/WebClient.ino b/examples/WebClient/WebClient.ino index f686fa2..6e0d94b 100644 --- a/examples/WebClient/WebClient.ino +++ b/examples/WebClient/WebClient.ino @@ -130,7 +130,7 @@ void setup() { // Set GSM module baud rate // TinyGsmAutoBaud(SerialAT,GSM_AUTOBAUD_MIN,GSM_AUTOBAUD_MAX); SerialAT.begin(9600); - delay(3000); + delay(6000); // Restart takes quite some time // To skip it, call init() instead of restart() diff --git a/examples/more/Hologram_Dash/Hologram_Dash.ino b/examples/more/Hologram_Dash/Hologram_Dash.ino index 59d3dce..5578fc4 100644 --- a/examples/more/Hologram_Dash/Hologram_Dash.ino +++ b/examples/more/Hologram_Dash/Hologram_Dash.ino @@ -63,7 +63,7 @@ void setup() { // Set up Passthrough HologramCloud.enterPassthrough(); - delay(3000); + delay(6000); // Restart takes quite some time // To skip it, call init() instead of restart() diff --git a/examples/more/Industruino/Industruino.ino b/examples/more/Industruino/Industruino.ino index e1522d0..cd2b747 100644 --- a/examples/more/Industruino/Industruino.ino +++ b/examples/more/Industruino/Industruino.ino @@ -76,7 +76,7 @@ void setup() { // Set GSM module baud rate SerialAT.begin(115200); - delay(3000); + delay(6000); // Restart takes quite some time // To skip it, call init() instead of restart() diff --git a/examples/more/SIM800_SslSetCert/SIM800_SslSetCert.ino b/examples/more/SIM800_SslSetCert/SIM800_SslSetCert.ino index 8aadb3c..eef4207 100644 --- a/examples/more/SIM800_SslSetCert/SIM800_SslSetCert.ino +++ b/examples/more/SIM800_SslSetCert/SIM800_SslSetCert.ino @@ -46,7 +46,7 @@ void setup() { // Set GSM module baud rate SerialAT.begin(115200); - delay(3000); + delay(6000); SerialMon.println(F("Initializing modem...")); modem.init(); @@ -70,7 +70,7 @@ void setup() { modem.stream.flush(); if (modem.waitResponse(2000) != 1) return; - + modem.sendAT(GF("+SSLSETCERT=\"" CERT_FILE "\"")); if (modem.waitResponse() != 1) return; if (modem.waitResponse(5000L, GF(GSM_NL "+SSLSETCERT:")) != 1) return; @@ -94,4 +94,3 @@ void loop() { } delay(0); } - diff --git a/tools/AT_Debug/AT_Debug.ino b/tools/AT_Debug/AT_Debug.ino index d455422..76774f4 100644 --- a/tools/AT_Debug/AT_Debug.ino +++ b/tools/AT_Debug/AT_Debug.ino @@ -45,7 +45,7 @@ uint32_t rate = 0; // Set to 0 for Auto-Detect void setup() { // Set console baud rate SerialMon.begin(115200); - delay(3000); + delay(6000); } void loop() { diff --git a/tools/AT_Spy/AT_Spy.ino b/tools/AT_Spy/AT_Spy.ino index c7c0759..a3f206b 100644 --- a/tools/AT_Spy/AT_Spy.ino +++ b/tools/AT_Spy/AT_Spy.ino @@ -32,7 +32,7 @@ void setup() { MODEM_TX.begin(BAUD_RATE); BOARD_TX.begin(BAUD_RATE); - delay(1000); + delay(6000); } void loop() @@ -44,4 +44,3 @@ void loop() SPY.write(BOARD_TX.read()); } } - diff --git a/tools/Diagnostics/Diagnostics.ino b/tools/Diagnostics/Diagnostics.ino index c49f673..0bf2dff 100644 --- a/tools/Diagnostics/Diagnostics.ino +++ b/tools/Diagnostics/Diagnostics.ino @@ -130,7 +130,7 @@ void setup() { // Set GSM module baud rate // TinyGsmAutoBaud(SerialAT,GSM_AUTOBAUD_MIN,GSM_AUTOBAUD_MAX); SerialAT.begin(9600); - delay(3000); + delay(6000); } void loop() { diff --git a/tools/FactoryReset/FactoryReset.ino b/tools/FactoryReset/FactoryReset.ino index 91cde6d..ebb59d4 100644 --- a/tools/FactoryReset/FactoryReset.ino +++ b/tools/FactoryReset/FactoryReset.ino @@ -49,7 +49,7 @@ void setup() { // Set GSM module baud rate SerialAT.begin(9600); - delay(3000); + delay(6000); if (!modem.init()) { SerialMon.println(F("***********************************************************")); diff --git a/tools/test_build/test_build.ino b/tools/test_build/test_build.ino index b816280..0656390 100644 --- a/tools/test_build/test_build.ino +++ b/tools/test_build/test_build.ino @@ -10,7 +10,7 @@ TinyGsm modem(Serial); void setup() { Serial.begin(115200); - delay(3000); + delay(6000); } void loop() {