Skip to content

Commit

Permalink
Remove Serial.print from the code
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieucarbou committed Mar 19, 2024
1 parent 60bfe7d commit 2567782
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/TinyGsmMqttA76xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class TinyGsmMqttA76xx
thisModem().stream.write(this->cert_pem);
}
if (thisModem().waitResponse() != 1) {
Serial.println("Write ca_cert pem failed!");
ESP_LOGE("A76XX", "Write ca_cert pem failed!");
return false;
}
thisModem().sendAT("+CSSLCFG=\"cacert\",0,\"ca_cert.pem\"");
Expand All @@ -106,7 +106,8 @@ class TinyGsmMqttA76xx
thisModem().stream.write(this->client_cert_pem);
}
if (thisModem().waitResponse() != 1) {
Serial.println("Write cert pem failed!"); return false;
ESP_LOGE("A76XX", "Write cert pem failed!");
return false;
}
thisModem().sendAT("+CSSLCFG=\"clientcert\",0,\"cert.pem\"");
thisModem().waitResponse();
Expand All @@ -118,7 +119,8 @@ class TinyGsmMqttA76xx
thisModem().stream.write(this->client_key_pem);
}
if (thisModem().waitResponse() != 1) {
Serial.println("Write key_cert failed!"); return false;
ESP_LOGE("A76XX", "Write key_cert failed!");
return false;
}
thisModem().sendAT("+CSSLCFG=\"clientkey\",0,\"key_cert.pem\"");
thisModem().waitResponse();
Expand Down

0 comments on commit 2567782

Please sign in to comment.