Skip to content

Commit

Permalink
Switch to non-ssl MQTT for m4 on VM
Browse files Browse the repository at this point in the history
  • Loading branch information
tyeth committed Jan 5, 2024
1 parent 0271645 commit b0b181f
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/network_interfaces/Wippersnapper_WIFININA.h
Original file line number Diff line number Diff line change
Expand Up @@ -196,16 +196,8 @@ class Wippersnapper_WIFININA : public Wippersnapper {
u_int16_t port = 8883;
if (WS._mqttBrokerURL == nullptr) {
WS._mqttBrokerURL = "io.adafruit.com";
// _mqtt_client->setCACert(_aio_root_ca_prod);
// } else if (WS._mqttBrokerURL == "io.adafruit.vm"){
// // Set port to 1883 for non-ssl, or set SSL cert below
// //port = 1883;
// _mqtt_client->setCACert(_aio_root_ca_vm);
// } else if (WS._mqttBrokerURL == "io.adafruit.us") {
// _mqtt_client->setCACert(_aio_root_ca_staging);
// } else {
// // Assume non-ssl IP based testing
// port = 1883;
} else if (WS._mqttBrokerURL == "io.adafruit.vm"){
port = 1883;
}
// Construct MQTT client
WS._mqtt = new Adafruit_MQTT_Client(_mqtt_client, WS._mqttBrokerURL, port,
Expand Down

0 comments on commit b0b181f

Please sign in to comment.