Fix self signed certificate function (#1084)

when using mqttset
and add the macro into a test environment
This commit is contained in:
Florian authored and GitHub committed 2021-10-05 17:58:01 -05:00
1 parent dbedcf065d
commit 9a8606bd29
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -1951,7 +1951,7 @@ void MQTTtoSYS(char* topicOri, JsonObject& SYSdata) { // json object decoding
}
# if MQTT_SECURE_SELF_SIGNED
if (use_ss_cert) {
cert_index = SYSdata.get<uint8_t>("mqtt_cert_index");
cert_index = SYSdata["mqtt_cert_index"].as<uint8_t>();
if (cert_index >= sizeof(certs_array) / sizeof(ss_certs)) {
Log.error(F("mqtt_cert_index invalid - ignoring command" CR));
return;
+1
View File
@@ -859,6 +859,7 @@ lib_deps =
build_flags =
${com-esp.build_flags}
'-DMQTT_HTTPS_FW_UPDATE'
'-DMQTT_SECURE_SELF_SIGNED'
'-DGateway_Name="OpenMQTTGateway_TEST_MQTT_FW"'
board_build.flash_mode = dout