--- a/src/eric7/MicroPython/Devices/DeviceBase.py Sat Jul 29 16:45:57 2023 +0200 +++ b/src/eric7/MicroPython/Devices/DeviceBase.py Sat Jul 29 19:27:18 2023 +0200 @@ -121,6 +121,7 @@ self._interface = None self.microPython = microPythonWidget self._deviceData = {} # dictionary with essential device data + self._networkConnected = False # trace the network connection status self._submitMode = "raw" # default is 'raw' mode to submit commands @@ -227,6 +228,16 @@ and self._deviceData["mpy_name"].lower() == "circuitpython" ) + def isNetworkConnected(self): + """ + Public method to check, if the network interface (WiFi or Ethernet) is + connected. + + @return flag indicating the network connection state + @rtype bool + """ + return self._networkConnected + def submitMode(self): """ Public method to get the submit mode of the device.