Update(mp libs): 并入micropython下libraries到default
This commit is contained in:
@@ -183,7 +183,7 @@ class BLESimpleCentral:
|
|||||||
self._addr_type=self._info[1][index]
|
self._addr_type=self._info[1][index]
|
||||||
self._addr=self._info[2][index]
|
self._addr=self._info[2][index]
|
||||||
else:
|
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._conn_callback = callback
|
||||||
self._ble.gap_connect(self._addr_type, self._addr)
|
self._ble.gap_connect(self._addr_type, self._addr)
|
||||||
return True
|
return True
|
||||||
|
|||||||
@@ -69,7 +69,7 @@
|
|||||||
"ble_advertising"
|
"ble_advertising"
|
||||||
],
|
],
|
||||||
"__file__": true,
|
"__file__": true,
|
||||||
"__size__": 7312,
|
"__size__": 7391,
|
||||||
"__name__": "ble_central.py"
|
"__name__": "ble_central.py"
|
||||||
},
|
},
|
||||||
"ble_handle": {
|
"ble_handle": {
|
||||||
|
|||||||
@@ -183,7 +183,7 @@ class BLESimpleCentral:
|
|||||||
self._addr_type=self._info[1][index]
|
self._addr_type=self._info[1][index]
|
||||||
self._addr=self._info[2][index]
|
self._addr=self._info[2][index]
|
||||||
else:
|
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._conn_callback = callback
|
||||||
self._ble.gap_connect(self._addr_type, self._addr)
|
self._ble.gap_connect(self._addr_type, self._addr)
|
||||||
return True
|
return True
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
"ble_advertising"
|
"ble_advertising"
|
||||||
],
|
],
|
||||||
"__file__": true,
|
"__file__": true,
|
||||||
"__size__": 7299,
|
"__size__": 7378,
|
||||||
"__name__": "ble_central.py"
|
"__name__": "ble_central.py"
|
||||||
},
|
},
|
||||||
"mini_bot": {
|
"mini_bot": {
|
||||||
|
|||||||
@@ -69,7 +69,7 @@
|
|||||||
"ble_advertising"
|
"ble_advertising"
|
||||||
],
|
],
|
||||||
"__file__": true,
|
"__file__": true,
|
||||||
"__size__": 7312,
|
"__size__": 7391,
|
||||||
"__name__": "ble_central.py"
|
"__name__": "ble_central.py"
|
||||||
},
|
},
|
||||||
"ble_handle": {
|
"ble_handle": {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
"ble_advertising"
|
"ble_advertising"
|
||||||
],
|
],
|
||||||
"__file__": true,
|
"__file__": true,
|
||||||
"__size__": 7299,
|
"__size__": 7378,
|
||||||
"__name__": "ble_central.py"
|
"__name__": "ble_central.py"
|
||||||
},
|
},
|
||||||
"mini_bot": {
|
"mini_bot": {
|
||||||
|
|||||||
Reference in New Issue
Block a user