Skip to content

Commit

Permalink
remove qos 0
Browse files Browse the repository at this point in the history
  • Loading branch information
brentru committed Sep 22, 2021
1 parent cf9fdb8 commit 3c09a55
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Wippersnapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -847,15 +847,13 @@ bool Wippersnapper::buildWSTopics() {
void Wippersnapper::subscribeWSTopics() {
// Subscribe to signal topic
_topic_signal_brkr_sub =
new Adafruit_MQTT_Subscribe(WS._mqtt, WS._topic_signal_brkr, 0);
WS_DEBUG_PRINTLN("Subscribing to signals/broker");
new Adafruit_MQTT_Subscribe(WS._mqtt, WS._topic_signal_brkr, 1);
WS._mqtt->subscribe(_topic_signal_brkr_sub);
_topic_signal_brkr_sub->setCallback(cbSignalTopic);

// Subscribe to registration status topic
_topic_description_sub =
new Adafruit_MQTT_Subscribe(WS._mqtt, WS._topic_description_status, 1);
WS_DEBUG_PRINTLN("Subscribing to signals/status");
WS._mqtt->subscribe(_topic_description_sub);
_topic_description_sub->setCallback(cbRegistrationStatus);
}
Expand Down

0 comments on commit 3c09a55

Please sign in to comment.