mpy的蓝牙主机库,增加未扫描到从机报错提示

This commit is contained in:
dahanzimin
2024-12-03 16:24:40 +08:00
parent 7bc61d14e4
commit c4c7686690
2 changed files with 2 additions and 2 deletions

View File

@@ -183,7 +183,7 @@ class BLESimpleCentral:
self._addr_type=self._info[1][index]
self._addr=self._info[2][index]
else:
raise ValueError("Bluetooth was not found")
raise ValueError("The '{}' Bluetooth was not found, Please check device is working".format(mac if name is None else name))
self._conn_callback = callback
self._ble.gap_connect(self._addr_type, self._addr)
return True