src/eric7/MicroPython/Devices/DeviceBase.py

branch
mpy_network
changeset 9776
210bf87ae5c7
parent 9775
c6806d24468b
child 9779
8d3c7c991085
--- a/src/eric7/MicroPython/Devices/DeviceBase.py	Sat Feb 18 10:11:44 2023 +0100
+++ b/src/eric7/MicroPython/Devices/DeviceBase.py	Sat Feb 18 18:12:32 2023 +0100
@@ -1180,6 +1180,28 @@
         """
         return {}, {}
 
+    def connectWifi(self, ssid, password):
+        """
+        Public method to connect a device to a WiFi network.
+
+        @param ssid name (SSID) of the WiFi network
+        @type str
+        @param password password needed to connect
+        @type str
+        @return tuple containing the connection status and an error string
+        @rtype tuple of (bool, str)
+        """
+        return False, self.tr("Operation not supported.")
+
+    def disconnectWifi(self):
+        """
+        Public method to disconnect a device from the WiFi network.
+
+        @return tuple containing a flag indicating success and an error string
+        @rtype tuple of (bool, str)
+        """
+        return True, ""
+
     def addDeviceWifiEntries(self, menu):
         """
         Public method to add device specific entries to the given menu.

eric ide

mercurial