src/eric7/Documentation/Source/eric7.MicroPython.Devices.RP2040Devices.html

branch
mpy_network
changeset 9871
4a302b8c4d28
parent 9840
d41ee69fa69b
child 9878
a82014a9e57b
diff -r 0399d3607829 -r 4a302b8c4d28 src/eric7/Documentation/Source/eric7.MicroPython.Devices.RP2040Devices.html
--- a/src/eric7/Documentation/Source/eric7.MicroPython.Devices.RP2040Devices.html	Fri Mar 10 18:09:24 2023 +0100
+++ b/src/eric7/Documentation/Source/eric7.MicroPython.Devices.RP2040Devices.html	Fri Mar 10 18:10:13 2023 +0100
@@ -164,6 +164,10 @@
 <td>Public method to check, if the device has its own flash menu entry.</td>
 </tr>
 <tr>
+<td><a href="#RP2040Device.hasNetworkTime">hasNetworkTime</a></td>
+<td>Public method to check the availability of network time functions.</td>
+</tr>
+<tr>
 <td><a href="#RP2040Device.hasWifi">hasWifi</a></td>
 <td>Public method to check the availability of WiFi.</td>
 </tr>
@@ -184,6 +188,10 @@
 <td>Public method to enable the supported action buttons.</td>
 </tr>
 <tr>
+<td><a href="#RP2040Device.setNetworkTime">setNetworkTime</a></td>
+<td>Public method to set the time to the network time retrieved from an NTP server.</td>
+</tr>
+<tr>
 <td><a href="#RP2040Device.startAccessPoint">startAccessPoint</a></td>
 <td>Public method to start the access point interface.</td>
 </tr>
@@ -661,6 +669,32 @@
 bool
 </dd>
 </dl>
+<a NAME="RP2040Device.hasNetworkTime" ID="RP2040Device.hasNetworkTime"></a>
+<h4>RP2040Device.hasNetworkTime</h4>
+<b>hasNetworkTime</b>(<i></i>)
+
+<p>
+        Public method to check the availability of network time functions.
+</p>
+<dl>
+<dt>Return:</dt>
+<dd>
+flag indicating the availability of network time functions
+</dd>
+</dl>
+<dl>
+<dt>Return Type:</dt>
+<dd>
+bool
+</dd>
+</dl>
+<dl>
+
+<dt>Raises <b>OSError</b>:</dt>
+<dd>
+raised to indicate an issue with the device
+</dd>
+</dl>
 <a NAME="RP2040Device.hasWifi" ID="RP2040Device.hasWifi"></a>
 <h4>RP2040Device.hasWifi</h4>
 <b>hasWifi</b>(<i></i>)
@@ -748,6 +782,43 @@
 <p>
         Public method to enable the supported action buttons.
 </p>
+<a NAME="RP2040Device.setNetworkTime" ID="RP2040Device.setNetworkTime"></a>
+<h4>RP2040Device.setNetworkTime</h4>
+<b>setNetworkTime</b>(<i>server="0.pool.ntp.org", tzOffset=0, timeout=10</i>)
+
+<p>
+        Public method to set the time to the network time retrieved from an
+        NTP server.
+</p>
+<dl>
+
+<dt><i>server</i> (str (optional))</dt>
+<dd>
+name of the NTP server to get the network time from
+            (defaults to "0.pool.ntp.org")
+</dd>
+<dt><i>tzOffset</i> (int (optional))</dt>
+<dd>
+offset with respect to UTC (defaults to 0)
+</dd>
+<dt><i>timeout</i> (int)</dt>
+<dd>
+maximum time to wait for a server response in seconds
+            (defaults to 10)
+</dd>
+</dl>
+<dl>
+<dt>Return:</dt>
+<dd>
+tuple containing a flag indicating success and an error string
+</dd>
+</dl>
+<dl>
+<dt>Return Type:</dt>
+<dd>
+tuple of (bool, str)
+</dd>
+</dl>
 <a NAME="RP2040Device.startAccessPoint" ID="RP2040Device.startAccessPoint"></a>
 <h4>RP2040Device.startAccessPoint</h4>
 <b>startAccessPoint</b>(<i>ssid, security=None, password=None, ifconfig=None</i>)

eric ide

mercurial