-
-
Notifications
You must be signed in to change notification settings - Fork 284
CurieBLE: characteristic.writeInt(...) does not perform write request #385
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
@sandeepmistry Apparently, the same Central sketch, using writeInt(), behaves differently with two different Peripherals. Am I correct? |
Logged as Jira 794. |
@SidLeung I don't think so, Here's the behaviour I expect:
To me it seems like a write command is always used, and the 101 peripheral accepts this even if the characteristic has a write property. |
I think this is related to 414 #414 If you look at the screen capture from the namlyzer then this is already fixed |
@sandeepmistry , resolution is available in nightly build starting on 2/9/2017, http://mkfs.ndg.intel.com/json/public/package_public-07.4_index.json |
I'm still experiencing this issue: HCI dump capture snippet from Raspberry Pi:
|
@sandeepmistry , can this failure be duplicated with iOS devices? Thanks. |
@SidLeung with iOS everything is fine, see last block of comment #385 (comment)
|
@sandeepmistry , we need to use Raspberry Pi to see the issue then. @russmcinnis , @noelpaz . |
I will grab a raspberry pi and try to reproduce this and get some scanner traces. |
Hi @sandeepmistry , Can you share the raspberry pi's executing code? I want take a look. Thanks! |
Hi @sgbihu, Here are some instructions:
|
Jira 860 is created to track this issue. |
This looks good now with the 2.0.2 RC JSON @SidLeung provided me on my Mac. However, my sketch is filtering based on the local name, and it doesn't work with the Raspberry Pi, I'll open a separate issue shortly on this.
|
When using the [bleno echo example] on my Raspberry Pi, with the sketch below,
echoCharacteristic.writeInt(i)
returns true, but the write request does not succeed.I ran
hcidump
on the Raspberry Pi, and the operation is failing:A write request should be sent instead of a write command because the characteristic only has the "write" property on not "write without response".
If I use LightBlue on my iPhone, the write succeeds using a write request:
The text was updated successfully, but these errors were encountered: