Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix crash caused by incorrectly set broker url in mqtt object #353

Merged
merged 1 commit into from
Oct 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Wippersnapper.h
Original file line number Diff line number Diff line change
@@ -67,7 +67,7 @@
#endif

#define WS_VERSION \
"1.0.0-beta.51" ///< WipperSnapper app. version (semver-formatted)
"1.0.0-beta.52" ///< WipperSnapper app. version (semver-formatted)

// Reserved Adafruit IO MQTT topics
#define TOPIC_IO_THROTTLE "/throttle" ///< Adafruit IO Throttle MQTT Topic
2 changes: 1 addition & 1 deletion src/Wippersnapper_Boards.h
Original file line number Diff line number Diff line change
@@ -100,7 +100,7 @@
#define BOARD_ID "feather-esp8266"
#define USE_LITTLEFS
#define USE_STATUS_LED
#define STATUS_LED_PIN 13
#define STATUS_LED_PIN 0
#elif defined(ARDUINO_FEATHER_ESP32)
#define BOARD_ID "feather-esp32"
#define USE_LITTLEFS
6 changes: 3 additions & 3 deletions src/network_interfaces/Wippersnapper_ESP8266.h
Original file line number Diff line number Diff line change
@@ -128,15 +128,15 @@ class Wippersnapper_ESP8266 : public Wippersnapper {
if (WS._mqttBrokerURL == nullptr) {
WS._mqttBrokerURL = "io.adafruit.com";
} else {
_mqttBrokerURL = "io.adafruit.us";
WS._mqttBrokerURL = "io.adafruit.us";
}

// Uncomment the following lines to use MQTT/SSL. You will need to
// re-compile after. _wifi_client->setFingerprint(fingerprint); WS._mqtt =
// new Adafruit_MQTT_Client(_wifi_client, _mqttBrokerURL, _mqtt_port,
// new Adafruit_MQTT_Client(_wifi_client, WS._mqttBrokerURL, _mqtt_port,
// clientID, WS._username, WS._key);

WS._mqtt = new Adafruit_MQTT_Client(_wifi_client, _mqttBrokerURL, 1883,
WS._mqtt = new Adafruit_MQTT_Client(_wifi_client, WS._mqttBrokerURL, 1883,
clientID, WS._username, WS._key);
}