ArduinoCore-arc32
ArduinoCore-arc32 copied to clipboard
Fix GIT #516 and 517 return success when respond with error
Root cause
- The return value indecate the read/write request send successfully.
- The subscribe will ignore the response and this will not be fixed.
Solution
- Add the error detect based on read/write response.
Changed files BLECallbacks.cpp - Delete the error check for read response. BLECharacteristicImp.cpp
- Add the error check.
- Optimize the memory allocate and clear the allocated memory. BLECharacteristicImp.h - Add varibles to flag the response error
The subscribe will ignore the response and this will not be fixed.
Will this be fixed later?
This always ignore the response in the stack. So the application can't get the result. This is the stack's limitation. And the return value stand for the gatt ccc write request send out. And it is an unblock call. I think we will not fix for the subscribe API.
Is this a limitation of the firmware?
And it is an unblock call. I think we will not fix for the subscribe API.
I expect characteristic.subscribe() and characteristic.unsubscribe() to block.
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.