1510 connected. |
1510 connected. |
1511 |
1511 |
1512 @return flag indicating the network connection state |
1512 @return flag indicating the network connection state |
1513 @rtype bool |
1513 @rtype bool |
1514 """ |
1514 """ |
1515 # Ask the device if that is true. |
1515 if self._deviceData: |
1516 if self._deviceData["ethernet"]: |
1516 # Ask the device if that is true. |
1517 # It is an ethernet capable device. |
1517 if self._deviceData["ethernet"]: |
1518 return self.isLanConnected() |
1518 # It is an ethernet capable device. |
1519 elif self._deviceData["wifi"]: |
1519 return self.isLanConnected() |
1520 # It is a WiFi capable device. |
1520 elif self._deviceData["wifi"]: |
1521 return self.isWifiClientConnected() |
1521 # It is a WiFi capable device. |
1522 else: |
1522 return self.isWifiClientConnected() |
1523 return False |
1523 |
|
1524 return False |
1524 |
1525 |
1525 ################################################################## |
1526 ################################################################## |
1526 ## Methods below implement WiFi related methods |
1527 ## Methods below implement WiFi related methods |
1527 ################################################################## |
1528 ################################################################## |
1528 |
1529 |