src/eric7/MicroPython/Devices/DeviceBase.py

branch
mpy_network
changeset 9781
3112f77f722b
parent 9779
8d3c7c991085
child 9782
67414f28db68
diff -r 8d3c7c991085 -r 3112f77f722b src/eric7/MicroPython/Devices/DeviceBase.py
--- a/src/eric7/MicroPython/Devices/DeviceBase.py	Sun Feb 19 14:45:16 2023 +0100
+++ b/src/eric7/MicroPython/Devices/DeviceBase.py	Mon Feb 20 11:42:45 2023 +0100
@@ -1221,6 +1221,25 @@
         """
         return True, ""
 
+    def checkInternet(self):
+        """
+        Public method to check, if the internet can be reached.
+
+        @return tuple containing a flag indicating reachability and an error string
+        @rtype tuple of (bool, str)
+        """
+        return False, ""
+
+    def scanNetworks(self):
+        """
+        Public method to scan for available WiFi networks.
+
+        @return tuple containing the list of available networks as a tuple of 'Name',
+            'MAC-Address', 'channel', 'RSSI' and 'security' and an error string
+        @rtype tuple of (list of tuple of (str, str, int, int, str), str)
+        """
+        return [], ""
+
     def addDeviceWifiEntries(self, menu):
         """
         Public method to add device specific entries to the given menu.

eric ide

mercurial