<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[SDS PLC/PAC: Měření Energie & OnlineTechnology.cz - mqtt interval]]></title>
	<link rel="self" href="https://forum.sds.an-d.cz/extern.php?action=feed&amp;tid=1169&amp;type=atom" />
	<updated>2024-12-08T23:54:58Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.sds.an-d.cz/viewtopic.php?id=1169</id>
		<entry>
			<title type="html"><![CDATA[Re: mqtt interval]]></title>
			<link rel="alternate" href="https://forum.sds.an-d.cz/viewtopic.php?pid=7770#p7770" />
			<content type="html"><![CDATA[<p>Funkční řešení je dát časovou podmínku do main a volat proceduru z main. Takže nyní ok.</p>]]></content>
			<author>
				<name><![CDATA[soami]]></name>
				<uri>https://forum.sds.an-d.cz/profile.php?id=11700</uri>
			</author>
			<updated>2024-12-08T23:54:58Z</updated>
			<id>https://forum.sds.an-d.cz/viewtopic.php?pid=7770#p7770</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[mqtt interval]]></title>
			<link rel="alternate" href="https://forum.sds.an-d.cz/viewtopic.php?pid=7768#p7768" />
			<content type="html"><![CDATA[<p>Jak správně vytvořit časový interval pro odesílání mqtt zpráv na broker server? Pokud zabalím příkazy publish do časové podmínky, padá komunikace s brokerem do chyby connection error -07. Časové zpoždění mám až na konci všech publish příkazů.</p><p>if (sys[10]&lt;10 &amp;&amp; mqttdelay==0)<br />{ mqtt_publish(&#039;sds/tc/prikon&#039;, ram[50]); <br />&nbsp; w1: <br />&nbsp; if (sys[2200] &lt; 0) goto mqtt_conn_fail;&nbsp; &nbsp; // disconnected ?<br />&nbsp; if (sys[2202] == 1) goto w1;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// still working ?<br />&nbsp; if (sys[2202] != 2)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // success ?<br />&nbsp; { echo(&#039;publish error = &#039;, sys[2202]); };<br /> w2: etc...<br /> w3: etc...<br />&nbsp; mqttdelay=(sys[3]+3000);}<br />else<br /> {if (mqttdelay&lt;sys[3])<br />&nbsp; &nbsp;{mqttdelay=0;}<br /> }</p>]]></content>
			<author>
				<name><![CDATA[soami]]></name>
				<uri>https://forum.sds.an-d.cz/profile.php?id=11700</uri>
			</author>
			<updated>2024-12-06T21:57:23Z</updated>
			<id>https://forum.sds.an-d.cz/viewtopic.php?pid=7768#p7768</id>
		</entry>
</feed>
