Skip to content

Commit

Permalink
fix mqtt message text
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Satrom committed Mar 26, 2019
1 parent b3ad30f commit 710d234
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions brew-buddy-firmware/src/brew-buddy-firmware.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 710d234

Please sign in to comment.