[Bugfix] Remote descriptor not found when char handles out of order#415
[Bugfix] Remote descriptor not found when char handles out of order#415
Conversation
This resolves the issue of retrieving characteristics out of handle order and then trying to subscribe or do some other fetch of a descriptor belonging to that characteristic and the search handle was limited to the handle of the next characteristic in the vector. This ensures that the vector is sorted in ascending order based on handle values so the next characteristic in the vector will always have a higher handle value and the desciptor serach will function as intended.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughArrr, this change be addin' a sort to the characteristic discovery process! After the NimBLE stack retrieves all characteristics fer a service, the code now sorts Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This resolves the issue of retrieving characteristics out of handle order and then trying to subscribe or do some other fetch of a descriptor belonging to that characteristic and the search handle was limited to the handle of the next characteristic in the vector.
This ensures that the vector is sorted in ascending order based on handle values so the next characteristic in the vector will always have a higher handle value and the descriptor search will function as intended.
Fixes #395
Summary by CodeRabbit