Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 5 months ago.
Can I figure out which characteristic was set notifying in onUpdatesEnabled callback?
Novice question.
My device has four characteristics. Each has BLE_GATT_CHAR_PROPERTIES_NOTIFY propertie. I want to figure out which characteristic was set notifying in onUpdatesEnabled callback from charHandle argument.
I tried to compare a charHandle argument with mychar.getValueAttribute().getHandle(). But no match occurred.
So I checked with DEBUG print. Results are follows:
mychar | getValueAttribute().getHandle() | charHandle-argument |
#1 | 0 | 15 |
#2 | 1 | 19 |
#3 | 2 | 22 |
#4 | 3 | 25 |
Am I missing something?
I use RedBearLab BLE Nano (Nordic nRF51822).
Question relating to:
1 Answer
9 years, 5 months ago.
You've uncovered a major issue with the Nordic port. We'll track it at https://github.com/mbedmicro/nRF51822/issues/20 We expect to provide a fix within a couple of days. Thanks so much for reporting this.
Takashi,
A fix has been pushed to the develop branch of BLE_API/nRF51822. Could you please build against that and retest?
thanks,
posted by 01 Jul 2015
we'll look into this shortly. Thanks for bringing this to our attention.
posted by Rohit Grover 28 Jun 2015