<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>pubsubclient on Bald Engineer</title><link>https://www.baldengineer.com/tag/pubsubclient</link><description>Recent content in pubsubclient on Bald Engineer</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Sat, 04 Feb 2017 02:02:18 +0000</lastBuildDate><atom:link href="https://www.baldengineer.com/tag/pubsubclient/index.xml" rel="self" type="application/rss+xml"/><item><title>Multiple MQTT Topics with Arduino PubSubClient</title><link>https://www.baldengineer.com/multiple-mqtt-topics-pubsubclient.html</link><pubDate>Wed, 01 Feb 2017 13:00:22 +0000</pubDate><guid isPermaLink="false">https://www.baldengineer.com/?p=6348</guid><description>In my Arduino MQTT Examples, I kept things simple by only subscribing to a single topic. One of the strengths of MQTT is that a device can subscribe (or publish) to multiple topics. The broker will sort things out. Even though my first example only showed one, it is straight forward to get the Arduino PubSubClient library to subscribe to Multiple MQTT topics.&#10;The quick answer is that you need to look at the MQTT response to find out which topic sent the payload.<p><img src="https://www.baldengineer.com/wp-content/uploads/2017/02/multiple-mqtt-topics-banner-760px.jpg" alt="Multiple MQTT Topics with Arduino PubSubClient"/></p></description></item></channel></rss>