src/eric7/MicroPython/Devices/DeviceBase.py

branch
eric7
changeset 10683
779cda568acb
parent 10515
6e790462348a
child 11090
f5f5f5803935
--- a/src/eric7/MicroPython/Devices/DeviceBase.py	Tue Apr 16 15:47:11 2024 +0200
+++ b/src/eric7/MicroPython/Devices/DeviceBase.py	Sat Apr 20 18:01:36 2024 +0200
@@ -1400,15 +1400,15 @@
         else:
             return ""
 
-    def syncTime(self, deviceType, hasCPy=False):  # noqa: U100
+    def syncTime(self, _deviceType, hasCPy=False):  # noqa: U100
         """
         Public method to set the time of the connected device to the local
         computer's time.
 
-        @param deviceType type of board to sync time to
+        @param _deviceType type of board to sync time to (unused)
         @type str
         @param hasCPy flag indicating that the device has CircuitPython loadede
-            (defaults to False)
+            (defaults to False) (unused)
         @type bool
         @exception OSError raised to indicate an issue with the device
         """
@@ -1592,11 +1592,11 @@
         """
         Public method to connect a device to a WiFi network.
 
-        @param ssid name (SSID) of the WiFi network
+        @param ssid name (SSID) of the WiFi network (unused)
         @type str
-        @param password password needed to connect
+        @param password password needed to connect (unused)
         @type str
-        @param hostname host name of the device
+        @param hostname host name of the device (unused)
         @type str
         @return tuple containing the connection status and an error string
         @rtype tuple of (bool, str)
@@ -1635,13 +1635,13 @@
         Public method to write the given credentials to the connected device and modify
         the start script to connect automatically.
 
-        @param ssid SSID of the network to connect to
+        @param ssid SSID of the network to connect to (unused)
         @type str
-        @param password password needed to authenticate
+        @param password password needed to authenticate (unused)
         @type str
-        @param hostname host name of the device
+        @param hostname host name of the device (unused)
         @type str
-        @param country WiFi country code
+        @param country WiFi country code (unused)
         @type str
         @return tuple containing a flag indicating success and an error message
         @rtype tuple of (bool, str)
@@ -1681,7 +1681,7 @@
         Public method to deactivate a given WiFi interface of the connected device.
 
         @param interface designation of the interface to be deactivated (one of 'AP'
-            or 'STA')
+            or 'STA') (unused)
         @type str
         @return tuple containg a flag indicating success and an error message
         @rtype tuple of (bool, str)
@@ -1699,16 +1699,16 @@
         """
         Public method to start the access point interface.
 
-        @param ssid SSID of the access point
+        @param ssid SSID of the access point (unused)
         @type str
-        @param security security method (defaults to None)
+        @param security security method (defaults to None) (unused)
         @type int (optional)
-        @param password password (defaults to None)
+        @param password password (defaults to None) (unused)
         @type str (optional)
-        @param hostname host name of the device (defaults to None)
+        @param hostname host name of the device (defaults to None) (unused)
         @type str (optional)
         @param ifconfig IPv4 configuration for the access point if not default
-            (IPv4 address, netmask, gateway address, DNS server address)
+            (IPv4 address, netmask, gateway address, DNS server address) (unused)
         @type tuple of (str, str, str, str)
         @return tuple containing a flag indicating success and an error message
         @rtype tuple of (bool, str)
@@ -1739,7 +1739,7 @@
         Public method to write the given WebREPL password to the connected device and
         modify the start script to start the WebREPL server.
 
-        @param password password needed to authenticate
+        @param password password needed to authenticate (unused)
         @type str
         @return tuple containing a flag indicating success and an error message
         @rtype tuple of (bool, str)
@@ -1795,8 +1795,9 @@
 
         @param config configuration for the connection (either the string 'dhcp'
             for a dynamic address or a tuple of four strings with the IPv4 parameters.
+            (unused)
         @type str or tuple of (str, str, str, str)
-        @param hostname host name of the device
+        @param hostname host name of the device (unused)
         @type str
         @return tuple containing a flag indicating success and an error message
         @rtype tuple of (bool, str)
@@ -1846,8 +1847,9 @@
 
         @param config configuration for the connection (either the string 'dhcp'
             for a dynamic address or a tuple of four strings with the IPv4 parameters.
+            (unused)
         @type str or tuple of (str, str, str, str)
-        @param hostname host name of the device
+        @param hostname host name of the device (unused)
         @type str
         @return tuple containing a flag indicating success and an error message
         @rtype tuple of (bool, str)
@@ -1920,7 +1922,7 @@
         Public method to perform a Bluetooth device scan.
 
         @param timeout duration of the device scan in seconds (defaults
-            to 10)
+            to 10) (unused)
         @type int (optional)
         @return tuple containing a dictionary with the scan results and
             an error string
@@ -1949,12 +1951,12 @@
         NTP server.
 
         @param server name of the NTP server to get the network time from
-            (defaults to "0.pool.ntp.org")
+            (defaults to "0.pool.ntp.org") (unused)
         @type str (optional)
-        @param tzOffset offset with respect to UTC (defaults to 0)
+        @param tzOffset offset with respect to UTC (defaults to 0) (unused)
         @type int (optional)
         @param timeout maximum time to wait for a server response in seconds
-            (defaults to 10)
+            (defaults to 10) (unused)
         @type int
         @return tuple containing a flag indicating success and an error string
         @rtype tuple of (bool, str)

eric ide

mercurial