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 |
960 |
961 def createDevice(microPythonWidget, deviceType, vid, pid, boardName, serialNumber): |
961 def createDevice( |
|
962 microPythonWidget, deviceType, vid, pid, boardName, serialNumber # noqa: U100 |
|
963 ): |
962 """ |
964 """ |
963 Function to instantiate a MicroPython device object. |
965 Function to instantiate a MicroPython device object. |
964 |
966 |
965 @param microPythonWidget reference to the main MicroPython widget |
967 @param microPythonWidget reference to the main MicroPython widget |
966 @type MicroPythonWidget |
968 @type MicroPythonWidget |