Skip to content

Commit

Permalink
Merge pull request #7 from mathieucarbou/pr/no-print
Browse files Browse the repository at this point in the history
Remove Serial.print from the code
  • Loading branch information
lewisxhe authored Mar 21, 2024
2 parents 727e5ae + 2567782 commit 57f4c84
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 57f4c84

Please sign in to comment.