Some questions around Bluetooth Server #6800
Replies: 1 comment
-
Posted at 2017-11-30 by @gfwilliams
I don't know - but going by Google results,
Can we detect that? If so we could add it - although there haven't been any requests for that functionality :)
Do you have an example? I assumed all you could define (that was actually exported via BLE) was the length and UUID.
I'm not sure I understand. You can't specify a description at the moment as far as I know.
A characteristic that you defined? You can't read it as far as I know (I don't think I can get that info from the Nordic softdevice), but you can use Posted at 2017-11-30 by JumJum Thanks for the feedback, it gave me something to think about. I'm still, and will be for next time, in the steep part of learning curve. Please see my comments.
Posted at 2017-12-01 by @gfwilliams
Thanks - in fact it looks like they can be set for Nordic chips as well with
Ahh, I stand corrected! It looks like this was something that got added in a PR by Uri, so I must have missed it!
Yes, I totally agree. I don't think there's ever a reason it should be writable? Looking at the code, Perhaps it isn't actually writable? It's just that there's no way for it to indicate that, so a write attempt will fail?
Ahh, right - yes, that makes things a lot more flexible. I think for now it's best not to expose that extra functionality though, in order to keep everything as similar as possible between the two? After all, it's not like people seem to asking for the ability to read as it's pretty easy to keep track of the current value. Posted at 2017-12-01 by JumJum Sometimes, I would like to have the option using onRead. This would help to read/calculate/whatever this value, only if somebody(the client) asks for it. Only way to set a new value I know about is nrf.updateServices, correct ? Description is always writable as far as I can see. Puck.js ignores writing a description. It could be done on ESP32, but I don't see a reason doing that. Posted at 2017-12-01 by @gfwilliams
Yes, that's right - on both counts. Personally I'd have thought that getting JavaScript to supply the value on demand might be quite difficult given the time it might take to execute? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-11-29 by JumJum
During port of Bluetooth for ESP32 some questions came up. Hopefully there is not too much "it helps if you can read" ;-)
Beta Was this translation helpful? Give feedback.
All reactions