services
Service #
Bases: Enum
Geeft een overzicht van alle services die door de micro:bit kunnen worden aangeboden
Zie ook: https://lancaster-university.github.io/microbit-docs/resources/bluetooth/bluetooth_profile.html
Source code in src/kaspersmicrobit/bluetoothprofile/services.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 |
|
GENERIC_ACCESS
class-attribute
instance-attribute
#
GENERIC_ACCESS = '00001800-0000-1000-8000-00805f9b34fb'
GENERIC_ATTRIBUTE
class-attribute
instance-attribute
#
GENERIC_ATTRIBUTE = '00001801-0000-1000-8000-00805f9b34fb'
DEVICE_INFORMATION
class-attribute
instance-attribute
#
DEVICE_INFORMATION = '0000180a-0000-1000-8000-00805f9b34fb'
ACCELEROMETER
class-attribute
instance-attribute
#
ACCELEROMETER = 'e95d0753-251d-470a-a062-fa1922dfa9a8'
MAGNETOMETER
class-attribute
instance-attribute
#
MAGNETOMETER = 'e95df2d8-251d-470a-a062-fa1922dfa9a8'
DFU_CONTROL
class-attribute
instance-attribute
#
DFU_CONTROL = 'e95d93b0-251d-470a-a062-fa1922dfa9a8'
TEMPERATURE
class-attribute
instance-attribute
#
TEMPERATURE = 'e95d6100-251d-470a-a062-fa1922dfa9a8'
lookup
staticmethod
#
lookup(uuid: str)
Looks up the enum corresponding the given uuid
Returns (Service): The enum with the given uuid, None if not found.
Source code in src/kaspersmicrobit/bluetoothprofile/services.py
118 119 120 121 122 123 124 125 126 127 128 129 |
|