Skip to content

Commit e88e873

Browse files
committed
Longer wait for download accept on SIM7080
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
1 parent fce225b commit e88e873

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/TinyGsmClientSIM7080.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ class TinyGsmSim7080 : public TinyGsmSim70xx<TinyGsmSim7080>,
340340
// <len_filename> Integer type. Maximum length of parameter <file name>.
341341
sendAT(GF("+CFSWFILE=3,\""), certificateName, GF("\",0,"), len,
342342
GF(",10000"));
343-
success &= waitResponse(GF("DOWNLOAD")) == 1;
343+
success &= waitResponse(5000L, GF("DOWNLOAD")) == 1;
344344

345345
if (success) {
346346
stream.write(cert, len);
@@ -948,6 +948,13 @@ class TinyGsmSim7080 : public TinyGsmSim70xx<TinyGsmSim7080>,
948948
const char* clientKeyName = thisClient->clientKeyName;
949949
const char* pskTableName = thisClient->pskTableName;
950950

951+
DBG("### SSL context index:", sslCtxIndex);
952+
DBG("SSL auth mode:", (int)sslAuthMode);
953+
DBG("CA cert name:", CAcertName);
954+
DBG("Client cert name:", clientCertName);
955+
DBG("Client key name:", clientKeyName);
956+
DBG("PSK table name:", pskTableName);
957+
951958
// NOTE: We cannot link the SSL context or set the certificates until
952959
// AFTER setting the connection id (ie, AT+CACID=mux)
953960
linkSSLContext(mux,

0 commit comments

Comments
 (0)