Browse Source

Bad smudge, examples are supposed to auto-baud

Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
v_master
Sara Damiano 4 years ago
parent
commit
1f1b56833a
7 changed files with 13 additions and 12 deletions
  1. +1
    -0
      README.md
  2. +2
    -2
      examples/AllFunctions/AllFunctions.ino
  3. +2
    -2
      examples/HttpClient/HttpClient.ino
  4. +2
    -2
      examples/HttpsClient/HttpsClient.ino
  5. +2
    -2
      examples/MqttClient/MqttClient.ino
  6. +2
    -2
      examples/WebClient/WebClient.ino
  7. +2
    -2
      tools/Diagnostics/Diagnostics.ino

+ 1
- 0
README.md View File

@ -201,6 +201,7 @@ The general flow of your code should be:
- Secure and insecure clients can usually be mixed when using multiple connections.
- The total number of connections possible varies by module
- Begin your serial communication and set all your pins as required to power your module and bring it to full functionality.
- The examples attempt to guess the module's baud rate. In working code, you should use a set baud.
- Wait for the module to be ready (could be as much as 6s, depending on the module)
- Initialize the modem
- ```modem.init()``` or ```modem.restart()```


+ 2
- 2
examples/AllFunctions/AllFunctions.ino View File

@ -137,8 +137,8 @@ void setup() {
delay(6000);
// Set GSM module baud rate
// TinyGsmAutoBaud(SerialAT, GSM_AUTOBAUD_MIN, GSM_AUTOBAUD_MAX);
SerialAT.begin(9600);
TinyGsmAutoBaud(SerialAT, GSM_AUTOBAUD_MIN, GSM_AUTOBAUD_MAX);
// SerialAT.begin(9600);
}
void loop() {


+ 2
- 2
examples/HttpClient/HttpClient.ino View File

@ -133,8 +133,8 @@ void setup() {
SerialMon.println("Wait...");
// Set GSM module baud rate
// TinyGsmAutoBaud(SerialAT,GSM_AUTOBAUD_MIN,GSM_AUTOBAUD_MAX);
SerialAT.begin(9600);
TinyGsmAutoBaud(SerialAT, GSM_AUTOBAUD_MIN, GSM_AUTOBAUD_MAX);
// SerialAT.begin(9600);
delay(6000);
// Restart takes quite some time


+ 2
- 2
examples/HttpsClient/HttpsClient.ino View File

@ -125,8 +125,8 @@ void setup() {
SerialMon.println("Wait...");
// Set GSM module baud rate
// TinyGsmAutoBaud(SerialAT,GSM_AUTOBAUD_MIN,GSM_AUTOBAUD_MAX);
SerialAT.begin(9600);
TinyGsmAutoBaud(SerialAT, GSM_AUTOBAUD_MIN, GSM_AUTOBAUD_MAX);
// SerialAT.begin(9600);
delay(6000);
// Restart takes quite some time


+ 2
- 2
examples/MqttClient/MqttClient.ino View File

@ -177,8 +177,8 @@ void setup() {
SerialMon.println("Wait...");
// Set GSM module baud rate
// TinyGsmAutoBaud(SerialAT,GSM_AUTOBAUD_MIN,GSM_AUTOBAUD_MAX);
SerialAT.begin(9600);
TinyGsmAutoBaud(SerialAT, GSM_AUTOBAUD_MIN, GSM_AUTOBAUD_MAX);
// SerialAT.begin(9600);
delay(6000);
// Restart takes quite some time


+ 2
- 2
examples/WebClient/WebClient.ino View File

@ -128,8 +128,8 @@ void setup() {
SerialMon.println("Wait...");
// Set GSM module baud rate
// TinyGsmAutoBaud(SerialAT,GSM_AUTOBAUD_MIN,GSM_AUTOBAUD_MAX);
SerialAT.begin(9600);
TinyGsmAutoBaud(SerialAT, GSM_AUTOBAUD_MIN, GSM_AUTOBAUD_MAX);
// SerialAT.begin(9600);
delay(6000);
// Restart takes quite some time


+ 2
- 2
tools/Diagnostics/Diagnostics.ino View File

@ -128,8 +128,8 @@ void setup() {
SerialMon.println("Wait...");
// Set GSM module baud rate
// TinyGsmAutoBaud(SerialAT,GSM_AUTOBAUD_MIN,GSM_AUTOBAUD_MAX);
SerialAT.begin(9600);
TinyGsmAutoBaud(SerialAT, GSM_AUTOBAUD_MIN, GSM_AUTOBAUD_MAX);
// SerialAT.begin(9600);
delay(6000);
}


Loading…
Cancel
Save