Skip to content

Commit b6b3296

Browse files
committed
minor fix and API changes
1 parent 5e913f1 commit b6b3296

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

examples/SSLCertificateManagement_Example/SSLCertificateManagement_Example.ino

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ void setup() {
7373
client.useSignedCertificate("MKRGSM01");
7474
client.usePrivateKey("MKRGSMKEY01");
7575
client.setTrustedRoot("Let_s_Encrypt_Authority_X3");
76-
client.setProfileSSL(1);
7776

7877

7978
Serial.print("Attempting to connect to the MQTT broker: ");

src/GSMClient.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ GSMClient::GSMClient(int socket, bool synch) :
5151
_host(NULL),
5252
_port(0),
5353
_ssl(false),
54-
_sslprofile(0),
54+
_sslprofile(1),
5555
_writeSync(true)
5656
{
5757
MODEM.addUrcHandler(this);
@@ -444,6 +444,6 @@ void GSMClient::handleUrc(const String& urc)
444444
}
445445
}
446446

447-
void GSMClient::setProfileSSL(uint8_t ssl) {
447+
void GSMClient::setCertificateValidationLevel(uint8_t ssl) {
448448
_sslprofile = ssl;
449449
}

src/GSMClient.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class GSMClient : public Client, public ModemUrcHandler {
131131

132132
/** Set ssl profile
133133
*/
134-
void setProfileSSL(uint8_t ssl);
134+
void setCertificateValidationLevel(uint8_t ssl);
135135

136136
virtual void handleUrc(const String& urc);
137137

src/GSMSSLClient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ void GSMSSLClient::usePrivateKey(const char* name) {
167167

168168
void GSMSSLClient::eraseTrustedRoot() {
169169
for(int i=0; i< _sizeRoot; i++) {
170-
MODEM.sendf("AT+USECPRF=2,0,\"%s\"", _gsmRoots[i].name);
170+
MODEM.sendf("AT+USECMNG=2,0,\"%s\"", _gsmRoots[i].name);
171171
MODEM.waitForResponse(100);
172172
}
173173
}

0 commit comments

Comments
 (0)