Skip to content

Commit

Permalink
Readd lost stop
Browse files Browse the repository at this point in the history
Signed-off-by: Sara Damiano <[email protected]>
  • Loading branch information
SRGDamia1 committed May 20, 2024
1 parent 97ae0a6 commit f77a671
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions examples/AllFunctions/AllFunctions.ino
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
// #define TINY_GSM_MODEM_SARAR4
// #define TINY_GSM_MODEM_SARAR5
// #define TINY_GSM_MODEM_M95
// #define TINY_GSM_MODEM_BG95
// #define TINY_GSM_MODEM_BG96
// #define TINY_GSM_MODEM_A6
// #define TINY_GSM_MODEM_A7
Expand Down Expand Up @@ -226,8 +227,7 @@ void loop() {
DBG("Phone number (USSD):", ussd_phone_num);
#endif

#if TINY_GSM_TEST_TCP && defined TINY_GSM_MODEM_HAS_TCP && \
not defined(TINY_GSM_MODEM_BG95SSL)
#if TINY_GSM_TEST_TCP && defined TINY_GSM_MODEM_HAS_TCP
TinyGsmClient client(modem, 0);
const int port = 80;
DBG("Connecting to", server);
Expand Down Expand Up @@ -376,9 +376,9 @@ void loop() {

#if TINY_GSM_TEST_GPS && defined TINY_GSM_MODEM_HAS_GPS
DBG("Enabling GPS/GNSS/GLONASS and waiting 15s for warm-up");
#if !defined(TINY_GSM_MODEM_SARAR5)
#if !defined(TINY_GSM_MODEM_SARAR5)
modem.enableGPS();
#endif
#endif
delay(15000L);
float lat2 = 0;
float lon2 = 0;
Expand Down
3 changes: 3 additions & 0 deletions src/TinyGsmClientBG96.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ class TinyGsmBG96 : public TinyGsmModem<TinyGsmBG96>,
sock_connected = false;
at->waitResponse((maxWaitMs - (millis() - startMillis)));
}
void stop() override {
stop(15000L);
}
};

/*
Expand Down
1 change: 1 addition & 0 deletions tools/Diagnostics/Diagnostics.ino
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
// #define TINY_GSM_MODEM_UBLOX
// #define TINY_GSM_MODEM_SARAR4
// #define TINY_GSM_MODEM_M95
// #define TINY_GSM_MODEM_BG95
// #define TINY_GSM_MODEM_BG96
// #define TINY_GSM_MODEM_A6
// #define TINY_GSM_MODEM_A7
Expand Down
2 changes: 0 additions & 2 deletions tools/test_build/test_build.ino
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ void loop() {
char server[] = "somewhere";
char resource[] = "something";

#if not defined(TINY_GSM_MODEM_BG95SSL) // no insecure client
// Test TCP functions
modem.maintain();
TinyGsmClient client;
Expand All @@ -91,7 +90,6 @@ void loop() {
}

client.stop();
#endif

#if defined(TINY_GSM_MODEM_HAS_SSL)
// modem.addCertificate(); // not yet impemented
Expand Down

0 comments on commit f77a671

Please sign in to comment.