errors
KaspersMicrobitNotFound #
Bases: Exception
Raised when no micro:bit was found, even though this was expected.
Attributes:
-
name
(str
) –The name of the micro:bit being searched for
-
devices
(List[BLEDevice]
) –The list of devices that were found
Source code in src/kaspersmicrobit/errors.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
|
BluetoothCharacteristicNotFound #
Bases: Exception
Raised when a Bluetooth GATT characteristic was not found, even though it was expected.
Attributes:
-
service
(Service
) –The micro:bit Bluetooth service in which the characteristic was sought
-
characteristic
(Characteristic
) –The characteristic that was not found
Source code in src/kaspersmicrobit/errors.py
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
|
BluetoothServiceNotFound #
Bases: Exception
Raised when a Bluetooth service was not found even though it was expected to be.
Attributes:
-
service
(Service
) –The micro:bit bluetooth service that was not found
Source code in src/kaspersmicrobit/errors.py
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
|