bump up version, comment out socket reset if not connected in getClientStateTcp().
remove
This commit is contained in:
parent
91fc6766da
commit
fa599780ee
2 changed files with 5 additions and 5 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
|
@ -1,9 +1,6 @@
|
|||
[submodule "certificates"]
|
||||
path = certificates
|
||||
url = https://github.com/adafruit/certificates
|
||||
[submodule "esp-idf"]
|
||||
path = esp-idf
|
||||
url = https://github.com/espressif/esp-idf
|
||||
[submodule "arduino-esp32"]
|
||||
path = components/arduino-esp32
|
||||
url = https://github.com/espressif/arduino-esp32
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ int errno;
|
|||
// Note: following version definition line is parsed by python script. Please don't change its format (space, indent) only update its version number.
|
||||
// ADAFRUIT-CHANGE: not fixed length
|
||||
// The version number obeys semver rules. We suffix with "+adafruit" to distinguish from Arduino NINA-FW.
|
||||
const char FIRMWARE_VERSION[] = "3.0.0";
|
||||
const char FIRMWARE_VERSION[] = "3.1.0";
|
||||
|
||||
// ADAFRUIT-CHANGE: user-supplied cert and key
|
||||
// Optional, user-defined X.509 certificate
|
||||
|
|
@ -960,7 +960,10 @@ int getClientStateTcp(const uint8_t command[], uint8_t response[])
|
|||
} else if ((socketTypes[socket] == TLS_MODE) && tlsClients[socket].connected()) {
|
||||
response[4] = 4;
|
||||
} else {
|
||||
socketTypes[socket] = NO_MODE;
|
||||
// ADAFRUIT: Original code reset socket type probably to clean up socket that was closed by remote host (once connected)
|
||||
// However if application tries to query socket state while TLS socket is in middle of handshaking (may take a while),
|
||||
// it can reset socket and cause esp32 report as closed/non-available connection.
|
||||
// socketTypes[socket] = NO_MODE;
|
||||
response[4] = 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue