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

branch
mpy_network
changeset 9871
4a302b8c4d28
parent 9866
0cf5dda5512f
child 10022
a95800b414b7
equal deleted inserted replaced
9870:0399d3607829 9871:4a302b8c4d28
218 <tr> 218 <tr>
219 <td><a href="#EspDevice.hasFlashMenuEntry">hasFlashMenuEntry</a></td> 219 <td><a href="#EspDevice.hasFlashMenuEntry">hasFlashMenuEntry</a></td>
220 <td>Public method to check, if the device has its own flash menu entry.</td> 220 <td>Public method to check, if the device has its own flash menu entry.</td>
221 </tr> 221 </tr>
222 <tr> 222 <tr>
223 <td><a href="#EspDevice.hasNetworkTime">hasNetworkTime</a></td>
224 <td>Public method to check the availability of network time functions.</td>
225 </tr>
226 <tr>
223 <td><a href="#EspDevice.hasWifi">hasWifi</a></td> 227 <td><a href="#EspDevice.hasWifi">hasWifi</a></td>
224 <td>Public method to check the availability of WiFi.</td> 228 <td>Public method to check the availability of WiFi.</td>
225 </tr> 229 </tr>
226 <tr> 230 <tr>
227 <td><a href="#EspDevice.removeCredentials">removeCredentials</a></td> 231 <td><a href="#EspDevice.removeCredentials">removeCredentials</a></td>
240 <td>Public method to enable the supported action buttons.</td> 244 <td>Public method to enable the supported action buttons.</td>
241 </tr> 245 </tr>
242 <tr> 246 <tr>
243 <td><a href="#EspDevice.setConnected">setConnected</a></td> 247 <td><a href="#EspDevice.setConnected">setConnected</a></td>
244 <td>Public method to set the connection state.</td> 248 <td>Public method to set the connection state.</td>
249 </tr>
250 <tr>
251 <td><a href="#EspDevice.setNetworkTime">setNetworkTime</a></td>
252 <td>Public method to set the time to the network time retrieved from an NTP server.</td>
245 </tr> 253 </tr>
246 <tr> 254 <tr>
247 <td><a href="#EspDevice.startAccessPoint">startAccessPoint</a></td> 255 <td><a href="#EspDevice.startAccessPoint">startAccessPoint</a></td>
248 <td>Public method to start the access point interface.</td> 256 <td>Public method to start the access point interface.</td>
249 </tr> 257 </tr>
883 <dt>Return Type:</dt> 891 <dt>Return Type:</dt>
884 <dd> 892 <dd>
885 bool 893 bool
886 </dd> 894 </dd>
887 </dl> 895 </dl>
896 <a NAME="EspDevice.hasNetworkTime" ID="EspDevice.hasNetworkTime"></a>
897 <h4>EspDevice.hasNetworkTime</h4>
898 <b>hasNetworkTime</b>(<i></i>)
899
900 <p>
901 Public method to check the availability of network time functions.
902 </p>
903 <dl>
904 <dt>Return:</dt>
905 <dd>
906 flag indicating the availability of network time functions
907 </dd>
908 </dl>
909 <dl>
910 <dt>Return Type:</dt>
911 <dd>
912 bool
913 </dd>
914 </dl>
915 <dl>
916
917 <dt>Raises <b>OSError</b>:</dt>
918 <dd>
919 raised to indicate an issue with the device
920 </dd>
921 </dl>
888 <a NAME="EspDevice.hasWifi" ID="EspDevice.hasWifi"></a> 922 <a NAME="EspDevice.hasWifi" ID="EspDevice.hasWifi"></a>
889 <h4>EspDevice.hasWifi</h4> 923 <h4>EspDevice.hasWifi</h4>
890 <b>hasWifi</b>(<i></i>) 924 <b>hasWifi</b>(<i></i>)
891 925
892 <p> 926 <p>
979 <dl> 1013 <dl>
980 1014
981 <dt><i>connected</i> (bool)</dt> 1015 <dt><i>connected</i> (bool)</dt>
982 <dd> 1016 <dd>
983 connection state 1017 connection state
1018 </dd>
1019 </dl>
1020 <a NAME="EspDevice.setNetworkTime" ID="EspDevice.setNetworkTime"></a>
1021 <h4>EspDevice.setNetworkTime</h4>
1022 <b>setNetworkTime</b>(<i>server="0.pool.ntp.org", tzOffset=0, timeout=10</i>)
1023
1024 <p>
1025 Public method to set the time to the network time retrieved from an
1026 NTP server.
1027 </p>
1028 <dl>
1029
1030 <dt><i>server</i> (str (optional))</dt>
1031 <dd>
1032 name of the NTP server to get the network time from
1033 (defaults to "0.pool.ntp.org")
1034 </dd>
1035 <dt><i>tzOffset</i> (int (optional))</dt>
1036 <dd>
1037 offset with respect to UTC (defaults to 0)
1038 </dd>
1039 <dt><i>timeout</i> (int)</dt>
1040 <dd>
1041 maximum time to wait for a server response in seconds
1042 (defaults to 10)
1043 </dd>
1044 </dl>
1045 <dl>
1046 <dt>Return:</dt>
1047 <dd>
1048 tuple containing a flag indicating success and an error string
1049 </dd>
1050 </dl>
1051 <dl>
1052 <dt>Return Type:</dt>
1053 <dd>
1054 tuple of (bool, str)
984 </dd> 1055 </dd>
985 </dl> 1056 </dl>
986 <a NAME="EspDevice.startAccessPoint" ID="EspDevice.startAccessPoint"></a> 1057 <a NAME="EspDevice.startAccessPoint" ID="EspDevice.startAccessPoint"></a>
987 <h4>EspDevice.startAccessPoint</h4> 1058 <h4>EspDevice.startAccessPoint</h4>
988 <b>startAccessPoint</b>(<i>ssid, security=None, password=None, ifconfig=None</i>) 1059 <b>startAccessPoint</b>(<i>ssid, security=None, password=None, ifconfig=None</i>)

eric ide

mercurial