Closed nevyn closed 1 year ago
Thanks for your suggestion @nevyn. This repository is only used for development of the content of the Arduino Language Reference. Since this issue is about the ArduinoBLE library's documentation, it is off topic for this issue tracker.
Library reference content is hosted in each individual library repository. For the ArduinoBLE library, it is here:
https://github.com/arduino-libraries/ArduinoBLE/tree/master/docs
Please submit this as an issue or pull request to the arduino-libraries/ArduinoBLE
repository:
@per1234 thanks! The docs site does link to this repo for reporting documentation issues. It says: "Find anything that can be improved? Suggest corrections and new documentation via GitHub." With a link here. I recommend changing that link to the correct repo when reading library documentation off of arduino.cc!
Re-reported as https://github.com/arduino-libraries/ArduinoBLE/issues/306
At: https://www.arduino.cc/reference/en/libraries/arduinoble/bledevice.characteristic/
It would be helpful to mention in the main documentation body for
BLEDevice.characteristic()
that the API requires you to eitherBLEDevice.discoverAttributes()
orBLEDevice.discoverSerivce()
first. It is hinted at from the example, but it's really easy to miss.It could also be mentioned in the conceptual documentation over at
https://www.arduino.cc/reference/en/libraries/arduinoble/
that characteristics need to be discovered before being queried. There are sections about notifying and writing characteristics, but no section about basic reading of characteristics; that could be a good place to mention it.Thanks!