<?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[Requesting time from MQTT gateway]]></title><description><![CDATA[<p dir="auto">Hi All</p>
<p dir="auto">I have search and search the forum for an answer to my question but no luck so far :-S</p>
<p dir="auto">Some information about my setup:</p>
<p dir="auto">MQTT gateway using ENC28J60 module on an Arduino Uno.</p>
<p dir="auto">TimeAwareSensor sketch on an Arduino Uno.</p>
<p dir="auto">I haven´t done any changes to the lib, just dowloaded version 1.4 from <a href="http://mysensors.org" rel="nofollow ugc">mysensors.org</a></p>
<p dir="auto">Now I have some problems with getting the time from the controller, on the serial interface of the TimeAwareSensor I get this:</p>
<p dir="auto">sensor started, id 50<br />
send: 50-50-0-0 s=255,c=0,t=17,pt=0,l=5,st=ok:1.4.1<br />
send: 50-50-0-0 s=255,c=3,t=6,pt=1,l=1,st=ok:0<br />
send: 50-50-0-0 s=255,c=3,t=11,pt=0,l=5,st=ok:Clock<br />
send: 50-50-0-0 s=255,c=3,t=12,pt=0,l=3,st=ok:1.0<br />
send: 50-50-0-0 s=255,c=3,t=1,pt=0,l=3,st=ok:1.0<br />
requesting time<br />
send: 50-50-0-0 s=255,c=3,t=1,pt=0,l=3,st=ok:1.0<br />
requesting time<br />
send: 50-50-0-0 s=255,c=3,t=1,pt=0,l=3,st=ok:1.0</p>
<p dir="auto">Now it seems like the controller, in my case the MQTT gateway, never respond back with the current time. Do I need to configure anything on the gateway so it is able to send the time?</p>
<p dir="auto">I tried to to send the time using a MQTT client and the following happening on the MQTT Gateway:</p>
<p dir="auto">snow/50/255/I_TIME<br />
0;0;3;0;9;send: 0-0-50-50 s=255,c=1,t=63,pt=0,l=10,st=ok:1420988733<br />
C0 00<br />
D0 00<br />
0;0;3;0;9;read: 50-50-0 s=255,c=3,t=1,pt=0,l=10:1420988733<br />
snow/50/255/V_<br />
30 1A 00 0E 73 6E 6F 77 2F 35 30 2F 32 35 35 2F 56 5F 31 34 32 30 39 38 38 37 33 33</p>
<p dir="auto">Now the snow/50/255/I_TIME is send with t=63, it should be t=1 i guess, so maybe that´s why it doesn´t work.</p>
<p dir="auto">So to sum up, my questions are as follow:</p>
<p dir="auto">Do I need to configure anything on the MQTT gateway so it can respond to time request?</p>
<p dir="auto">Is it supported to send the time using MQTT, like snow/50/255/I_TIME &lt;time since 1970&gt;?</p>
<p dir="auto">And when I try to do it why is it seen as t=63?</p>
<p dir="auto">Thanks in advance</p>
]]></description><link>https://forum.mysensors.org/topic/809/requesting-time-from-mqtt-gateway</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Jul 2026 10:25:15 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/809.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 11 Jan 2015 18:00:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Requesting time from MQTT gateway on Sun, 11 Jan 2015 21:54:52 GMT]]></title><description><![CDATA[<p dir="auto">Seems to be same issue as I posted in "RTC sensor and Openhab". I guessed the problem was on the Openhab side but looking at the output from the various logs it seems that the MQTT causes this and this post points to the same cause.</p>
]]></description><link>https://forum.mysensors.org/post/8576</link><guid isPermaLink="true">https://forum.mysensors.org/post/8576</guid><dc:creator><![CDATA[mbj]]></dc:creator><pubDate>Sun, 11 Jan 2015 21:54:52 GMT</pubDate></item><item><title><![CDATA[Reply to Requesting time from MQTT gateway on Sun, 11 Jan 2015 19:33:51 GMT]]></title><description><![CDATA[<p dir="auto">You should probably report MQTT gateway problems to <a class="plugin-mentions-user plugin-mentions-a" href="/user/damme" aria-label="Profile: Damme">@<bdi>Damme</bdi></a>  here:<br />
<a href="http://forum.mysensors.org/topic/303/mqtt-broker-gateway/" rel="nofollow ugc">http://forum.mysensors.org/topic/303/mqtt-broker-gateway/</a></p>
]]></description><link>https://forum.mysensors.org/post/8567</link><guid isPermaLink="true">https://forum.mysensors.org/post/8567</guid><dc:creator><![CDATA[hek]]></dc:creator><pubDate>Sun, 11 Jan 2015 19:33:51 GMT</pubDate></item></channel></rss>