Frequent 129 errors writing BLE characteristic #1324
chrischandler25
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using this package to set resistance on my Wahoo Kickr turbo trainer (fitness device). I find that even when no writeCharacteristic calls have been made for many seconds, the write attempts will fail with status 129 but no further detail.
The same calls made from my Android Pixel 8 running https://auuki.com/ which uses Web BLE only fail if sent before the response from the previous write is received.
I've found that the only way to set the resistance reliably is to retry in rapid succession until success - this often takes 5 or more attempts. I also found that introducing a delay between attempts does not improve probability of success, and ultimately takes a longer time for successful write. This retry mechanism does work, but often taking several seconds to succeed, so it would be great to get to the bottom of the issue. I tried with react-native-ble-plx, but that had very similar issues, so I wonder if it is somehow related to running in React native.
I've also looked at the android logs with logcat, but they don't reveal any significant differences between successful and unsuccessful attempts.
Any suggestions would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions