mirror of
https://github.com/vshymanskyy/TinyGSM.git
synced 2026-05-15 04:06:10 +00:00
Revert bad override of A7672x setCertificates
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
This commit is contained in:
@@ -313,8 +313,8 @@ 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);
|
||||
@@ -322,7 +322,7 @@ class TinyGsmA7672X : public TinyGsmModem<TinyGsmA7672X>,
|
||||
return waitResponse() == 1;
|
||||
}
|
||||
|
||||
bool deleteCertificateImpl(const String& certificateName) { // todo test
|
||||
bool deleteCertificate(const String& certificateName) { // todo test
|
||||
sendAT(GF("+CCERTDELE="), certificateName);
|
||||
return waitResponse() == 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user