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:

mychargetValueAttribute().getHandle()charHandle-argument
#1015
#2119
#3222
#4325

Am I missing something?

I use RedBearLab BLE Nano (Nordic nRF51822).

Question relating to:

High level Bluetooth Low Energy API and radio abstraction layer

we'll look into this shortly. Thanks for bringing this to our attention.

posted by Rohit Grover 28 Jun 2015

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.

Accepted Answer

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 Rohit Grover 01 Jul 2015

Thank you for your quick and kind response. I'll retest soon. Ah. You've changed two files: nRF51GattServer.cpp and nRF51GattServer.h, for the issue #20. Is this correct?

posted by Takashi Ishizaki 01 Jul 2015

Rohit,

Result of retesting is good. A return value of getHandle() is equal to an argument value of callback.

Thanks so much.

posted by Takashi Ishizaki 01 Jul 2015