This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Multilink Peripheral Example - Master Control Panel - how to send / enable notifications

Hello,

I am currently building up a little application on top of the ble_multilink_peripheral_example.

I would like to have the nRF Master Control Panel on Android to automatically "refresh" the value I set in my code with sd_ble_gatts_value_set(m_conn_handle,m_char_handles.value_handle, &test_value);

How to do that? Are the 3 down arrows in the Control Supposed to do that? It says "notifications enabled" in the debug console of the Android App when I press them and also the descriptor changes from "Notifications and indications diasbled" to "Notifications enabled". But then nothing more happens. What function do I need in my code for this to work? sd_ble_gatts_hvx?

//Edit:

I still got a problem I can't seem to solve on my own.. When I disconnect and reconnect from the nRF Master Control Panel (Android) the status in the MCP is still "Bonded" and if I press the single arrow down I still get recent mesaurement values. But when I press the 3 down-arrows to enable notifications the status changes to "Bonding..." then to "Bonded" and I have to press the 3 down-arrows once again to make it work. What may cause this? main.c ble_app_multilink_peripheral.zip

Parents Reply
  • Thanks for your time! I am on Android 5.1@Nexus 4. I will test later on this day with one or two another Smartphone(s) Running Android 4.4 or 5.0.1 and edit this comment with the results. Can it also be a problem with the persistent storage of my nRF51-DK? Maybe their is a wrong bonding information saved that causes the trouble? Is there any easy way to check?

    Tried it on HTC ONE M8 running Android 5.0.2. Same behaviour as for me.

Children
No Data
Related