--- a/src/eric7/MicroPython/Devices/DeviceBase.py Tue Mar 14 13:18:13 2023 +0100 +++ b/src/eric7/MicroPython/Devices/DeviceBase.py Tue Mar 14 13:18:54 2023 +0100 @@ -81,7 +81,22 @@ <ul> <li>hasBluetooth: check, if the board has Bluetooth functionality</li> <li>getBluetoothStatus: get Bluetooth status data</li> + <li>activateBluetoothInterface: activate a Bluetooth interface</li> <li>deactivateBluetoothInterface: deactivate a Bluetooth interface</li> + <li>getDeviceScan: scan for visible Bluetooth devices</li> + </ul> + + Supported Ethernet commands are: + <ul> + <li>hasEthernet: check, if the board has Ethernet functionality + <li>getEthernetStatus: get Ethernet status data + <li>connectToLan: connect to an Ethernet network + <li>disconnectFromLan: disconnect from an Ethernet network + <li>checkInternetViaLan: check, if internet access via LAN is possible + <li>deactivateEthernet: deactivate the Ethernet interface + <li>writeLanAutoConnect: save IPv4 parameters to the board and create a script + to connect the board to the LAN + <li>removeLanAutoConnect: remove the IPv4 parameters and script from the board </ul> """ @@ -575,7 +590,7 @@ except OSError: return [] if dirname in ('', '/'): - return list((f, stat(f)) for f in files if is_visible(f, showHidden)) + return list((f, stat(dirname + f)) for f in files if is_visible(f, showHidden)) return list( (f, stat(dirname + '/' + f)) for f in files if is_visible(f, showHidden) ) @@ -1623,7 +1638,7 @@ """ return False - def setNetworkTime(self, server="0.pool.ntp.org", tzOffset=0, timeout=10): + def setNetworkTime(self, server="pool.ntp.org", tzOffset=0, timeout=10): """ Public method to set the time to the network time retrieved from an NTP server.