Why are these BTLE low-level constants defined as 'Incomplete'? #13527
Replies: 2 comments 6 replies
-
Where is the central.pyi you refer to from? |
Beta Was this translation helpful? Give feedback.
-
Hello Brian, My motto for the stubs and micropython-stubber is: 'To make it not wrong, and improve from there.' As part of creating the stubs the python modules that are normally frozen into the firmware are transformed into stubs using the mypy.stubgen tool two points to note here:
What I still would like to understand is why you want/need to know the values of the defined constants. the purpose of these is that you do not need to know the actual value? Can you confirm if you have indeed installed the stubs , or are using a tool such as MicroPico ( which includes them ) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In the low-level bluetooth library the central.pyi file defines these constants as follows:
_ADV_TYPE_FLAGS: Incomplete
_ADV_TYPE_NAME: Incomplete
_ADV_TYPE_UUID16_COMPLETE: Incomplete
_ADV_TYPE_UUID32_COMPLETE: Incomplete
_ADV_TYPE_UUID128_COMPLETE: Incomplete
_ADV_TYPE_UUID16_MORE: Incomplete
_ADV_TYPE_UUID32_MORE: Incomplete
_ADV_TYPE_UUID128_MORE: Incomplete
_ADV_TYPE_APPEARANCE: Incomplete
_ADV_TYPE_MANUFACTURER: Incomplete
Why 'Incomplete'? These constants have known values defined by the BT_SIG Bluetooth standards. There must be a reason for NOT providing the actual values and saving the implementer the effort of searching the standards to find them. Can anyone explain the rationale for 'Incomplete'?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions