diff --git a/examples/BlynkClient/BlynkClient.ino b/examples/BlynkClient/BlynkClient.ino index b194ee7..3e19f34 100644 --- a/examples/BlynkClient/BlynkClient.ino +++ b/examples/BlynkClient/BlynkClient.ino @@ -62,9 +62,12 @@ void setup() delay(3000); // Restart takes quite some time - // You can skip it in many cases + // To skip it, call init() instead of restart() modem.restart(); + // Unlock your SIM card with a PIN + //modem.simUnlock("1234"); + Blynk.begin(auth, modem, apn, user, pass); } diff --git a/examples/FileDownload/FileDownload.ino b/examples/FileDownload/FileDownload.ino index 95d9f18..01ca92b 100644 --- a/examples/FileDownload/FileDownload.ino +++ b/examples/FileDownload/FileDownload.ino @@ -43,8 +43,11 @@ void setup() { delay(3000); // Restart takes quite some time - // You can skip it in many cases + // To skip it, call init() instead of restart() modem.restart(); + + // Unlock your SIM card with a PIN + //modem.simUnlock("1234"); } void printPercent(uint32_t readLength, uint32_t contentLength) { @@ -81,7 +84,7 @@ void loop() { // if you get a connection, report back via serial: if (!client.connect(server, 80)) { - Serial.println(" failed"); + Serial.println(" fail"); delay(10000); return; } diff --git a/examples/MqttClient/MqttClient.ino b/examples/MqttClient/MqttClient.ino index 9fe3a66..cc59226 100644 --- a/examples/MqttClient/MqttClient.ino +++ b/examples/MqttClient/MqttClient.ino @@ -68,9 +68,12 @@ void setup() { delay(3000); // Restart takes quite some time - // You can skip it in many cases + // To skip it, call init() instead of restart() modem.restart(); + // Unlock your SIM card with a PIN + //modem.simUnlock("1234"); + Serial.print("Waiting for network..."); if (!modem.waitForNetwork()) { Serial.println(" fail"); diff --git a/examples/WebClient/WebClient.ino b/examples/WebClient/WebClient.ino index a7c3181..520fc47 100644 --- a/examples/WebClient/WebClient.ino +++ b/examples/WebClient/WebClient.ino @@ -39,8 +39,11 @@ void setup() { delay(3000); // Restart takes quite some time - // You can skip it in many cases + // To skip it, call init() instead of restart() modem.restart(); + + // Unlock your SIM card with a PIN + //modem.simUnlock("1234"); } void loop() { @@ -64,7 +67,7 @@ void loop() { Serial.print("Connecting to "); Serial.print(server); if (!client.connect(server, 80)) { - Serial.println(" failed"); + Serial.println(" fail"); delay(10000); return; } diff --git a/tools/SimpleTest/SimpleTest.ino b/tools/SimpleTest/SimpleTest.ino index 7538636..cd57c8b 100644 --- a/tools/SimpleTest/SimpleTest.ino +++ b/tools/SimpleTest/SimpleTest.ino @@ -47,10 +47,12 @@ void setup() { delay(3000); // Restart takes quite some time - // You can skip it in many cases - SerialMon.println("Restarting modem..."); + // To skip it, call init() instead of restart() modem.restart(); + // Unlock your SIM card with a PIN + //modem.simUnlock("1234"); + SerialMon.println("Waiting for network... "); if (modem.waitForNetwork()) { SerialMon.println("OK");