955 advType = ADV_SCAN_IND |
955 advType = ADV_SCAN_IND |
956 scanResults[address].update(advType, res["rssi"], res["advertisement"]) |
956 scanResults[address].update(advType, res["rssi"], res["advertisement"]) |
957 |
957 |
958 return scanResults, "" |
958 return scanResults, "" |
959 |
959 |
|
960 def supportsDeviceScan(self): |
|
961 """ |
|
962 Public method to indicate, that the Bluetooth implementation supports |
|
963 scanning for devices. |
|
964 |
|
965 @return flag indicating that the scanning function is supported |
|
966 @rtype bool |
|
967 """ |
|
968 return True |
|
969 |
960 |
970 |
961 def createDevice(microPythonWidget, deviceType, _vid, _pid, _boardName, serialNumber): |
971 def createDevice(microPythonWidget, deviceType, _vid, _pid, _boardName, serialNumber): |
962 """ |
972 """ |
963 Function to instantiate a MicroPython device object. |
973 Function to instantiate a MicroPython device object. |
964 |
974 |