adafruit / adafruit/Adafruit_CircuitPython_BLE
How to set HID properties manufacturer_string and product_string
- Dominant language
- Python
- Stars
- 138
- Forks
- 58
- PR merge metrics
- No merged PRs in 30d
Description
How can one set the HID 'manufacturer_string' and 'product_string' for the (BLE) HID device which is created using the HIDService()?
Setting the Bluetooth Name which shows up in the host while pairing is easy and documented.
But how to set the HID device properties I have no idea where to look.
Printing these properties on the host is easy like so:
```
import hid
infos = hid.enumerate(0, 0)
for info in infos:
print(info['manufacturer_string'], info['product_string'], info['path'])
```
hid library from: https://pypi.org/project/hid/
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing the HIDService() entry point and the existing Bluetooth Name configuration to find where HID properties are defined. Verify the result with the Python hid.enumerate(0, 0) example; done means the host reports the requested manufacturer_string and product_string.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- embedded-iot
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100