-
Notifications
You must be signed in to change notification settings - Fork 39
'characteristicvaluechanged' callback doesn't seem to work #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
+1 Same problem, did you find a solution ? |
+1 Same problem. |
When setNotifyValue is executed on the Core Bluetooth Peripheral, it is expected that didUpdateNotificationStateFor will execute with success or error. This never happens. Also, didUpdateValue is never executed either. This is at the core (pun intended) of the issue. So far no solution for it that I've found. |
Hi all, sorry I haven't been very proactive on this, I'm going to prioritise it in the next week. I will keep you updated. |
Bumping this issue. Any idea if it could be resolved soon? |
Hi @louisn, I think I should finally find time this week to fix this. I had been concentrating on getting the console implemented. It would be really helpful if you could get a repro using the latest version of WebBLE and with console logging, and then send me the logs, as I'm not quite sure what the issue is yet. |
Great news @daphtdazz ! BleBrowser won't connect the Moxy Monitor (namePrefix = Moxy). I'm not sure this is the same symptom as described in the issue. The XCode log shows this output.
|
Upon further review, the previous comment isn't exactly the issue but still might be useful background information so I'm not deleting it. Yet. The picker acted a bit differently than I was expecting but it does allow me to select the Moxy Monitor once the Done button is pressed. Once the user selects the device the log is as follows. The receiveMessageResponse entries just continue on.
|
Getting closer to some useful logs. Here is the use case. I don't see js execution for getCharacteristic values. I've added the logging for more detail. Something in how the transaction manager is setting up handlers perhaps? I tried to fix it but don't understand that well enough.
|
Hmm, I'm struggling to reproduce the issue. I am able to |
Thanks for the js logging tip. I'll add that and update the output.
…On Thu, Jan 3, 2019 at 6:16 PM David Park ***@***.***> wrote:
Hmm, I'm struggling to reproduce the issue. I am able to readValue() ok
and get responses. Are you also subscribing to value change notifications
on the characteristic you're reading from? Or simply reading directly? Will
keep looking over the weekend and if you get anymore logs they'd be
appreciated, especially if you are able to enable nslog() in WBUtils.js
and send the javascript console output as well!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABEZ3RlMWP0OkQhEQSksF-dsVMHi62nvks5u_p1TgaJpZM4SyOwT>
.
|
Still setting this up - I wanted to get the clearest data possible for posting. The inspector window title is as follows Does that indicate that a new document or other context is opened each poll? If so it could be that the BLE device or the transaction management is out of context? I'll continue to attempt to get additional data from the logging output from a clean connection that demonstrates the issue. |
That sounds weird! When you say "poll" do you just mean you are calling Also, another option for handling this might be for me to get one of the devices that you're using and give it a go myself with your code? If they're readily available and not too expensive I could buy one, or better yet if you have a spare you could send me one :-) |
I'll see what I can arrange with the company I'm working with.
…On Mon, Jan 14, 2019 at 4:51 PM David Park ***@***.***> wrote:
That sounds weird! When you say "poll" do you just mean you are calling
readValue() every few seconds? Or some combination of writeValue() and
readValue(), or something else?
Also, another option for handling this might be for me to get one of the
devices that you're using and give it a go myself with your code? If
they're readily available and not too expensive I could buy one, or better
yet if you have a spare you could send me one :-)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABEZ3dvIpHqLImxMTUagAo5y7F9oUkp7ks5vDQoLgaJpZM4SyOwT>
.
|
I can get a MoxyMonitor device to you. Can you provide a shipping address to me at louis.naber@gmail.com. |
Pretty sure this is fixed in 1.2.2 so closing. |
Once notifications are enabled, and a 'characteristicvaluechanged' callback has been set, it doesn't seem to be triggered. This issue has been noted with this application that works perfectly with Google Chrome on Android and Windows 10 (with this implementation). The same issue is also noted with a personal code. Any idea of what's going on ?
The text was updated successfully, but these errors were encountered: