<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — Embedded support of NTP]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=1634&amp;type=atom" />
	<updated>2023-03-30T08:59:47Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=1634</id>
		<entry>
			<title type="html"><![CDATA[Embedded support of NTP]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=5070#p5070" />
			<content type="html"><![CDATA[<p>I&#039;ve been trying (and failing) to do an NTP query using the same ESP8266 as RemoteXY is using. In my case I have a Mega that is using a serial port with an ESP01. Would it be possible to include NTP updates in the standard RemoteXY code?</p><p>What I suggest is:<br />* Add two new properties to the &quot;WiFi connection&quot; section of the GUI: NTP Pool, and update interval.<br />* Add an unsigned long int to the RemoteXY data structure: UTC_time<br />* Add a boolean or uint8_t to the RemoteXY data structure: time_updated_flag<br />* The RemoteXY routine performs an NTP query every update interval, and sets the flag to true or 1</p><p>The hosting program would keep the responsibility of noticing that the time_updated_flag has been set, and then converting the new UTC_time to the local time zone with or without summer time.</p>]]></content>
			<author>
				<name><![CDATA[jfstoke]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2232</uri>
			</author>
			<updated>2023-03-30T08:59:47Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=5070#p5070</id>
		</entry>
</feed>
