<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[ESP8266MQTTClientGateway]]></title><description><![CDATA[<p dir="auto">I am not sure this is a bug or an intentional change of the MQTT message structure.</p>
<p dir="auto">The version 1.5 Gateway has the code:</p>
<p dir="auto">inline MyMessage&amp; build (MyMessage &amp;msg, uint8_t destination, uint8_t sensor, uint8_t command, uint8_t type, bool enableAck) {</p>
<p dir="auto">while the ESP8266MQTTClientGateway uses:</p>
<pre><code>       snprintf_P(_fmtBuffer, MY_GATEWAY_MAX_SEND_LENGTH, PSTR(MY_MQTT_PUBLISH_TOPIC_PREFIX "/%d/%d/%d/%d/%d"), message.sender, message.sensor, mGetCommand(message), mGetAck(message), message.type);
</code></pre>
<p dir="auto">The disadvantage is of course that when upgrading to the ESP8266MQTTClientGateway a lot of coded definitions in for example Openhab have to be changed (I have no experience of how other controllers will handle this).</p>
]]></description><link>https://forum.mysensors.org/topic/2971/esp8266mqttclientgateway</link><generator>RSS for Node</generator><lastBuildDate>Mon, 10 Aug 2026 07:19:42 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/2971.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 30 Jan 2016 10:26:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ESP8266MQTTClientGateway on Sat, 30 Jan 2016 14:16:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hek" aria-label="Profile: hek">@<bdi>hek</bdi></a> That was very visible, please excuse my ignorance. Even though I have looked at this page I managed to leave the change unnoticed.</p>
]]></description><link>https://forum.mysensors.org/post/30093</link><guid isPermaLink="true">https://forum.mysensors.org/post/30093</guid><dc:creator><![CDATA[mbj]]></dc:creator><pubDate>Sat, 30 Jan 2016 14:16:00 GMT</pubDate></item><item><title><![CDATA[Reply to ESP8266MQTTClientGateway on Sat, 30 Jan 2016 14:08:27 GMT]]></title><description><![CDATA[<p dir="auto">It has been posted here:<br />
<a href="http://forum.mysensors.org/topic/2352/guide-setting-up-and-testing-mqtt-client-gateway" rel="nofollow ugc">http://forum.mysensors.org/topic/2352/guide-setting-up-and-testing-mqtt-client-gateway</a></p>
]]></description><link>https://forum.mysensors.org/post/30092</link><guid isPermaLink="true">https://forum.mysensors.org/post/30092</guid><dc:creator><![CDATA[hek]]></dc:creator><pubDate>Sat, 30 Jan 2016 14:08:27 GMT</pubDate></item><item><title><![CDATA[Reply to ESP8266MQTTClientGateway on Sat, 30 Jan 2016 14:02:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hek" aria-label="Profile: hek">@<bdi>hek</bdi></a> Thank's for the info. I  have missed any discussions about the change but as I am sure I am not the only one please add some text about the new format as a comment to the sketch whenever convenient. Might save some calls for support :-)</p>
]]></description><link>https://forum.mysensors.org/post/30091</link><guid isPermaLink="true">https://forum.mysensors.org/post/30091</guid><dc:creator><![CDATA[mbj]]></dc:creator><pubDate>Sat, 30 Jan 2016 14:02:46 GMT</pubDate></item><item><title><![CDATA[Reply to ESP8266MQTTClientGateway on Sat, 30 Jan 2016 11:34:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yveaux" aria-label="Profile: Yveaux">@<bdi>Yveaux</bdi></a> said:</p>
<blockquote>
<p dir="auto">Maybe <a class="plugin-mentions-user plugin-mentions-a" href="/user/hek" aria-label="Profile: hek">@<bdi>hek</bdi></a> can explain why the format changed.</p>
</blockquote>
<p dir="auto">It was due to space requirement (all V-types had to be stored as strings) and maintenance reasons (no changes needs to be done in the MQTT driver when adding a new V-types). Also the "new" topic follows the serial protocol (including internal commands) which should make it easier for controller developers to support both MQTT and serial protocol.</p>
]]></description><link>https://forum.mysensors.org/post/30080</link><guid isPermaLink="true">https://forum.mysensors.org/post/30080</guid><dc:creator><![CDATA[hek]]></dc:creator><pubDate>Sat, 30 Jan 2016 11:34:22 GMT</pubDate></item><item><title><![CDATA[Reply to ESP8266MQTTClientGateway on Sat, 30 Jan 2016 11:31:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mbj" aria-label="Profile: mbj">@<bdi>mbj</bdi></a> Ok, got it.<br />
Maybe <a class="plugin-mentions-user plugin-mentions-a" href="/user/hek" aria-label="Profile: hek">@<bdi>hek</bdi></a> can explain why the format changed.</p>
]]></description><link>https://forum.mysensors.org/post/30079</link><guid isPermaLink="true">https://forum.mysensors.org/post/30079</guid><dc:creator><![CDATA[Yveaux]]></dc:creator><pubDate>Sat, 30 Jan 2016 11:31:03 GMT</pubDate></item><item><title><![CDATA[Reply to ESP8266MQTTClientGateway on Sat, 30 Jan 2016 11:09:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yveaux" aria-label="Profile: Yveaux">@<bdi>Yveaux</bdi></a> Thank's for a quick reply. The current message (1.5) shows up with type (like V_TEMP) in third position in the received message at the Openhab end. Item def thus is something like MyMQtt/24/1/V_TEMP:state:default.</p>
<p dir="auto">The received message from new version as sniffed by a MQTT.fx client is MyMQTT/24/1/1/0/V_TEMP which thus means a rewrite of all definitions in Openhab.</p>
]]></description><link>https://forum.mysensors.org/post/30078</link><guid isPermaLink="true">https://forum.mysensors.org/post/30078</guid><dc:creator><![CDATA[mbj]]></dc:creator><pubDate>Sat, 30 Jan 2016 11:09:01 GMT</pubDate></item><item><title><![CDATA[Reply to ESP8266MQTTClientGateway on Sat, 30 Jan 2016 11:30:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mbj" aria-label="Profile: mbj">@<bdi>mbj</bdi></a> said:</p>
<pre><code>inline MyMessage&amp; build (MyMessage &amp;msg, uint8_t destination, uint8_t sensor, uint8_t command, uint8_t type, bool enableAck) {
</code></pre>
<p dir="auto">This is the build-method used to create a message to be sent over the MySensors network, while this</p>
<pre><code>snprintf_P(_fmtBuffer, MY_GATEWAY_MAX_SEND_LENGTH, PSTR(MY_MQTT_PUBLISH_TOPIC_PREFIX "/%d/%d/%d/%d/%d"), message.sender, message.sensor, mGetCommand(message), mGetAck(message), message.type);
</code></pre>
<p dir="auto">is the creation of the format string to convert a message to MQTT topic...</p>
<p dir="auto">Two different things.</p>
<p dir="auto">What is your real issue?</p>
]]></description><link>https://forum.mysensors.org/post/30074</link><guid isPermaLink="true">https://forum.mysensors.org/post/30074</guid><dc:creator><![CDATA[Yveaux]]></dc:creator><pubDate>Sat, 30 Jan 2016 11:30:39 GMT</pubDate></item></channel></rss>