Skip to content

Commit

Permalink
Revert bad override of A7672x setCertificates
Browse files Browse the repository at this point in the history
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
  • Loading branch information
SRGDamia1 committed May 23, 2024
1 parent a72c8e3 commit ada7cbc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/TinyGsmClientA7672x.h
Original file line number Diff line number Diff line change
Expand Up @@ -313,16 +313,16 @@ class TinyGsmA7672X : public TinyGsmModem<TinyGsmA7672X>,
// havetype like ".pem" or ".der".
// The certificate like - const char ca_cert[] PROGMEM = R"EOF(-----BEGIN...
// len of certificate like - sizeof(ca_cert)
bool addCertificateImpl(const String& certificateName, const String& cert,
const uint16_t len) {
bool addCertificate(const String& certificateName, const String& cert,
const uint16_t len) {
sendAT(GF("+CCERTDOWN="), certificateName, GF(","), len);
if (waitResponse(GF(">")) != 1) { return 0; }
stream.write(cert.c_str(), len);
stream.flush();
return waitResponse() == 1;
}

bool deleteCertificateImpl(const String& certificateName) { // todo test
bool deleteCertificate(const String& certificateName) { // todo test
sendAT(GF("+CCERTDELE="), certificateName);
return waitResponse() == 1;
}
Expand Down

0 comments on commit ada7cbc

Please sign in to comment.