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

branch
mpy_network
changeset 9871
4a302b8c4d28
parent 9860
d34667faa686
child 9878
a82014a9e57b
equal deleted inserted replaced
9870:0399d3607829 9871:4a302b8c4d28
304 <tr> 304 <tr>
305 <td><a href="#BaseDevice.hasFlashMenuEntry">hasFlashMenuEntry</a></td> 305 <td><a href="#BaseDevice.hasFlashMenuEntry">hasFlashMenuEntry</a></td>
306 <td>Public method to check, if the device has its own flash menu entry.</td> 306 <td>Public method to check, if the device has its own flash menu entry.</td>
307 </tr> 307 </tr>
308 <tr> 308 <tr>
309 <td><a href="#BaseDevice.hasNetworkTime">hasNetworkTime</a></td>
310 <td>Public method to check the availability of network time functions.</td>
311 </tr>
312 <tr>
309 <td><a href="#BaseDevice.hasTimeCommands">hasTimeCommands</a></td> 313 <td><a href="#BaseDevice.hasTimeCommands">hasTimeCommands</a></td>
310 <td>Public method to check, if the device supports time commands.</td> 314 <td>Public method to check, if the device supports time commands.</td>
311 </tr> 315 </tr>
312 <tr> 316 <tr>
313 <td><a href="#BaseDevice.hasWifi">hasWifi</a></td> 317 <td><a href="#BaseDevice.hasWifi">hasWifi</a></td>
382 <td>Public method to set the connection state.</td> 386 <td>Public method to set the connection state.</td>
383 </tr> 387 </tr>
384 <tr> 388 <tr>
385 <td><a href="#BaseDevice.setFileManager">setFileManager</a></td> 389 <td><a href="#BaseDevice.setFileManager">setFileManager</a></td>
386 <td>Public method to set the File Manager status and dependent status.</td> 390 <td>Public method to set the File Manager status and dependent status.</td>
391 </tr>
392 <tr>
393 <td><a href="#BaseDevice.setNetworkTime">setNetworkTime</a></td>
394 <td>Public method to set the time to the network time retrieved from an NTP server.</td>
387 </tr> 395 </tr>
388 <tr> 396 <tr>
389 <td><a href="#BaseDevice.setPlotter">setPlotter</a></td> 397 <td><a href="#BaseDevice.setPlotter">setPlotter</a></td>
390 <td>Public method to set the Plotter status and dependent status.</td> 398 <td>Public method to set the Plotter status and dependent status.</td>
391 </tr> 399 </tr>
1437 </p> 1445 </p>
1438 <dl> 1446 <dl>
1439 <dt>Return:</dt> 1447 <dt>Return:</dt>
1440 <dd> 1448 <dd>
1441 flag indicating a specific flash menu entry 1449 flag indicating a specific flash menu entry
1450 </dd>
1451 </dl>
1452 <dl>
1453 <dt>Return Type:</dt>
1454 <dd>
1455 bool
1456 </dd>
1457 </dl>
1458 <a NAME="BaseDevice.hasNetworkTime" ID="BaseDevice.hasNetworkTime"></a>
1459 <h4>BaseDevice.hasNetworkTime</h4>
1460 <b>hasNetworkTime</b>(<i></i>)
1461
1462 <p>
1463 Public method to check the availability of network time functions.
1464 </p>
1465 <dl>
1466 <dt>Return:</dt>
1467 <dd>
1468 flag indicating the availability of network time functions
1442 </dd> 1469 </dd>
1443 </dl> 1470 </dl>
1444 <dl> 1471 <dl>
1445 <dt>Return Type:</dt> 1472 <dt>Return Type:</dt>
1446 <dd> 1473 <dd>
1930 <dt><i>on</i> (bool)</dt> 1957 <dt><i>on</i> (bool)</dt>
1931 <dd> 1958 <dd>
1932 flag indicating the active status 1959 flag indicating the active status
1933 </dd> 1960 </dd>
1934 </dl> 1961 </dl>
1962 <a NAME="BaseDevice.setNetworkTime" ID="BaseDevice.setNetworkTime"></a>
1963 <h4>BaseDevice.setNetworkTime</h4>
1964 <b>setNetworkTime</b>(<i>server="0.pool.ntp.org", tzOffset=0, timeout=10</i>)
1965
1966 <p>
1967 Public method to set the time to the network time retrieved from an
1968 NTP server.
1969 </p>
1970 <dl>
1971
1972 <dt><i>server</i> (str (optional))</dt>
1973 <dd>
1974 name of the NTP server to get the network time from
1975 (defaults to "0.pool.ntp.org")
1976 </dd>
1977 <dt><i>tzOffset</i> (int (optional))</dt>
1978 <dd>
1979 offset with respect to UTC (defaults to 0)
1980 </dd>
1981 <dt><i>timeout</i> (int)</dt>
1982 <dd>
1983 maximum time to wait for a server response in seconds
1984 (defaults to 10)
1985 </dd>
1986 </dl>
1987 <dl>
1988 <dt>Return:</dt>
1989 <dd>
1990 tuple containing a flag indicating success and an error string
1991 </dd>
1992 </dl>
1993 <dl>
1994 <dt>Return Type:</dt>
1995 <dd>
1996 tuple of (bool, str)
1997 </dd>
1998 </dl>
1935 <a NAME="BaseDevice.setPlotter" ID="BaseDevice.setPlotter"></a> 1999 <a NAME="BaseDevice.setPlotter" ID="BaseDevice.setPlotter"></a>
1936 <h4>BaseDevice.setPlotter</h4> 2000 <h4>BaseDevice.setPlotter</h4>
1937 <b>setPlotter</b>(<i>on</i>) 2001 <b>setPlotter</b>(<i>on</i>)
1938 2002
1939 <p> 2003 <p>

eric ide

mercurial