Browse Source

Not always resetting socket timeout on XBee

v_master
Sara Damiano 5 years ago
parent
commit
9ea8fd358c
2 changed files with 5 additions and 3 deletions
  1. +2
    -2
      README.md
  2. +3
    -1
      src/TinyGsmClientXBee.h

+ 2
- 2
README.md View File

@ -79,9 +79,9 @@ Watch this repo for new updates! And of course, contributions are welcome ;)
- UDP
- Not yet supported on any module, though it may be some day
- SSL/TLS (HTTPS)
- Supported on¹:
- Supported on:
- SIM800, u-Blox, XBee _cellular_, ESP8266, and Sequans Monarch
¹ - only some device models or firmware revisions have this feature (SIM8xx R14.18, A7, etc.)
- Note: only some device models or firmware revisions have this feature (SIM8xx R14.18, A7, etc.)
- Not yet supported on:
- Quectel modems, SIM7000, SIM5360/5320/7100/7500/7600
- Not possible on:


+ 3
- 1
src/TinyGsmClientXBee.h View File

@ -131,7 +131,9 @@ public:
// For cellular models, per documentation: If you change the TM (socket
// timeout) value while in Transparent Mode, the current connection is
// immediately closed.
at->sendAT(GF("TM64")); // Set socket timeout (using Digi default of 10 seconds)
at->sendAT(GF("TM")); // Get socket timeout
String timeoutUsed = at->readResponseString(5000L);
at->sendAT(GF("TM"), timeoutUsed); // Re-set socket timeout
at->waitResponse(maxWaitMs); // This response can be slow
at->writeChanges();
at->exitCommand();


Loading…
Cancel
Save