Bad smudge, examples are supposed to auto-baud
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
This commit is contained in:
@@ -201,6 +201,7 @@ The general flow of your code should be:
|
|||||||
- Secure and insecure clients can usually be mixed when using multiple connections.
|
- Secure and insecure clients can usually be mixed when using multiple connections.
|
||||||
- The total number of connections possible varies by module
|
- 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.
|
- 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)
|
- Wait for the module to be ready (could be as much as 6s, depending on the module)
|
||||||
- Initialize the modem
|
- Initialize the modem
|
||||||
- ```modem.init()``` or ```modem.restart()```
|
- ```modem.init()``` or ```modem.restart()```
|
||||||
|
@@ -137,8 +137,8 @@ void setup() {
|
|||||||
delay(6000);
|
delay(6000);
|
||||||
|
|
||||||
// Set GSM module baud rate
|
// Set GSM module baud rate
|
||||||
// TinyGsmAutoBaud(SerialAT, GSM_AUTOBAUD_MIN, GSM_AUTOBAUD_MAX);
|
TinyGsmAutoBaud(SerialAT, GSM_AUTOBAUD_MIN, GSM_AUTOBAUD_MAX);
|
||||||
SerialAT.begin(9600);
|
// SerialAT.begin(9600);
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
|
@@ -133,8 +133,8 @@ void setup() {
|
|||||||
SerialMon.println("Wait...");
|
SerialMon.println("Wait...");
|
||||||
|
|
||||||
// Set GSM module baud rate
|
// Set GSM module baud rate
|
||||||
// TinyGsmAutoBaud(SerialAT,GSM_AUTOBAUD_MIN,GSM_AUTOBAUD_MAX);
|
TinyGsmAutoBaud(SerialAT, GSM_AUTOBAUD_MIN, GSM_AUTOBAUD_MAX);
|
||||||
SerialAT.begin(9600);
|
// SerialAT.begin(9600);
|
||||||
delay(6000);
|
delay(6000);
|
||||||
|
|
||||||
// Restart takes quite some time
|
// Restart takes quite some time
|
||||||
|
@@ -125,8 +125,8 @@ void setup() {
|
|||||||
SerialMon.println("Wait...");
|
SerialMon.println("Wait...");
|
||||||
|
|
||||||
// Set GSM module baud rate
|
// Set GSM module baud rate
|
||||||
// TinyGsmAutoBaud(SerialAT,GSM_AUTOBAUD_MIN,GSM_AUTOBAUD_MAX);
|
TinyGsmAutoBaud(SerialAT, GSM_AUTOBAUD_MIN, GSM_AUTOBAUD_MAX);
|
||||||
SerialAT.begin(9600);
|
// SerialAT.begin(9600);
|
||||||
delay(6000);
|
delay(6000);
|
||||||
|
|
||||||
// Restart takes quite some time
|
// Restart takes quite some time
|
||||||
|
@@ -177,8 +177,8 @@ void setup() {
|
|||||||
SerialMon.println("Wait...");
|
SerialMon.println("Wait...");
|
||||||
|
|
||||||
// Set GSM module baud rate
|
// Set GSM module baud rate
|
||||||
// TinyGsmAutoBaud(SerialAT,GSM_AUTOBAUD_MIN,GSM_AUTOBAUD_MAX);
|
TinyGsmAutoBaud(SerialAT, GSM_AUTOBAUD_MIN, GSM_AUTOBAUD_MAX);
|
||||||
SerialAT.begin(9600);
|
// SerialAT.begin(9600);
|
||||||
delay(6000);
|
delay(6000);
|
||||||
|
|
||||||
// Restart takes quite some time
|
// Restart takes quite some time
|
||||||
|
@@ -128,8 +128,8 @@ void setup() {
|
|||||||
SerialMon.println("Wait...");
|
SerialMon.println("Wait...");
|
||||||
|
|
||||||
// Set GSM module baud rate
|
// Set GSM module baud rate
|
||||||
// TinyGsmAutoBaud(SerialAT,GSM_AUTOBAUD_MIN,GSM_AUTOBAUD_MAX);
|
TinyGsmAutoBaud(SerialAT, GSM_AUTOBAUD_MIN, GSM_AUTOBAUD_MAX);
|
||||||
SerialAT.begin(9600);
|
// SerialAT.begin(9600);
|
||||||
delay(6000);
|
delay(6000);
|
||||||
|
|
||||||
// Restart takes quite some time
|
// Restart takes quite some time
|
||||||
|
@@ -128,8 +128,8 @@ void setup() {
|
|||||||
SerialMon.println("Wait...");
|
SerialMon.println("Wait...");
|
||||||
|
|
||||||
// Set GSM module baud rate
|
// Set GSM module baud rate
|
||||||
// TinyGsmAutoBaud(SerialAT,GSM_AUTOBAUD_MIN,GSM_AUTOBAUD_MAX);
|
TinyGsmAutoBaud(SerialAT, GSM_AUTOBAUD_MIN, GSM_AUTOBAUD_MAX);
|
||||||
SerialAT.begin(9600);
|
// SerialAT.begin(9600);
|
||||||
delay(6000);
|
delay(6000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user