-
-
Notifications
You must be signed in to change notification settings - Fork 284
CurieBLE: switchCharacteristic.written() returns incorrect value after first connect #380
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 Is it possible to use a BLE protocol analyzer to capture the connection activities between the 101 and LiteBlue? Would like to verify that there is no write operation involved here. Issue is logged as Jira 796 |
@SidLeung I don't have an analyzer on hand, however I can provide the output from the Xcode hardware IO tools packet logger app if you can't reproduce this. I don't expect LightBlue to send a write request, as I don't see this in v1.0.7. |
Hi @sandeepmistry , I have found the root cause. I have a question about the written. In the setup function, I found below code. If you think this write doesn't need trigger the event, I will change the code. The current code save the state when you call setValue. Thanks! |
That is correct, the v1.0.7 release had this behaviour. |
Another user has reported this on the forum: http://forum.arduino.cc/index.php?topic=443728.msg3085664#msg3085664 |
…first connect 1. Not set the flage when local device try to set the value. 2. Changed file libraries/CurieBLE/src/internal/BLECharacteristicImp.cpp
Resolution to this issue has passed code review, system testing, and merge to the main trunk. Will be available in the next nightly JSON build. |
…first connect 1. Not set the flage when local device try to set the value. 2. Changed file libraries/CurieBLE/src/internal/BLECharacteristicImp.cpp
@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 seeing this issue with the
|
Ok, there was a mix up with the JSON file, I have the incorrect version installed. This has been fixed. |
I tested this with recent corelibs releases and don't see the issues with mac light blue as the central and running that sketch on a 101. |
I'm trying the following sketch:
When I connect and disconnect from LightBlue on my Mac the output is as follows:
I do not expect the
LED off
statement, as the central has not written to the characteristic.The text was updated successfully, but these errors were encountered: