Skip to content
Discussion options

You must be logged in to vote

Great investigation! So, the problem is mostly configuration. The NimBLE stack must be configured to queue only up to 4 outgoing messages.

I think the pragmatic solution is that the enableNotifications() call should throw when the request fails; today it ignores the returned error. That would tell you that there is a problem, rather than failing silently. Then you can either change the sdkconfig to increase the number of queued requests or change your code to issue the requests serially, as you did above.

An alternate solution is to implement a queue in the Moddable SDK BLE bindings. However, that is a lot of code and complexity that doesn't seem justified here, given that this issue is r…

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@stc1988
Comment options

Comment options

You must be logged in to vote
6 replies
@phoddie
Comment options

@stc1988
Comment options

@stc1988
Comment options

@phoddie
Comment options

Answer selected by stc1988
@stc1988
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants