src/eric7/MicroPython/Devices/DeviceBase.py

branch
mpy_network
changeset 9857
0122ae72618d
parent 9855
c9244db5566a
child 9868
467288cffee2
equal deleted inserted replaced
9856:df2ff78bbc01 9857:0122ae72618d
1508 @return flag indicating the new state of the Bluetooth interface 1508 @return flag indicating the new state of the Bluetooth interface
1509 @rtype bool 1509 @rtype bool
1510 """ 1510 """
1511 return False 1511 return False
1512 1512
1513 def getDeviceScan(self, timeout=10):
1514 """
1515 Public method to perform a Bluetooth device scan.
1516
1517 @param timeout duration of the device scan in seconds (defaults
1518 to 10)
1519 @type int (optional)
1520 @return tuple containing a dictionary with the scan results and
1521 an error string
1522 @rtype tuple of (dict, str)
1523 """
1524 return {}, ""
1525
1513 ################################################################## 1526 ##################################################################
1514 ## Methods below implement some utility methods 1527 ## Methods below implement some utility methods
1515 ################################################################## 1528 ##################################################################
1516 1529
1517 def bool2str(self, val, capitalized=True): 1530 def bool2str(self, val, capitalized=True):
1528 if capitalized: 1541 if capitalized:
1529 return self.tr("Yes") if val else self.tr("No") 1542 return self.tr("Yes") if val else self.tr("No")
1530 else: 1543 else:
1531 return self.tr("yes") if val else self.tr("no") 1544 return self.tr("yes") if val else self.tr("no")
1532 1545
1546
1533 # 1547 #
1534 # eflag: noqa = M613 1548 # eflag: noqa = M613

eric ide

mercurial