From 710d23428512b44a422dcc0d0efbb4650dfa2a77 Mon Sep 17 00:00:00 2001 From: Brandon Satrom Date: Tue, 26 Mar 2019 17:23:46 -0500 Subject: [PATCH] fix mqtt message text --- brew-buddy-firmware/src/brew-buddy-firmware.ino | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/brew-buddy-firmware/src/brew-buddy-firmware.ino b/brew-buddy-firmware/src/brew-buddy-firmware.ino index 0085d82..004e172 100644 --- a/brew-buddy-firmware/src/brew-buddy-firmware.ino +++ b/brew-buddy-firmware/src/brew-buddy-firmware.ino @@ -163,11 +163,9 @@ void setup() if (client.isConnected()) { Particle.publish("mqtt/status", "connected"); - bool methodSubResult = client.subscribe("$iothub/methods/#", MQTT::QOS0); bool msgSubResult = client.subscribe("devices/" + deviceID + "/messages/devicebound/#", MQTT::QOS0); - Particle.publish("matt/method-sub-result", methodSubResult ? "subscribed to hub methods" : "subscription failed"); - Particle.publish("matt/method-sub-result", msgSubResult ? "subscribed to hub messages" : "subscription failed"); + Particle.publish("mqtt/message-sub-result", msgSubResult ? "subscribed to hub messages" : "subscription failed"); } else {