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

Sending data on Notification

Hey, I have a problem with sending data on Notification. The problem is data is transmitted in the characteristics even when the notification is not enabled by the app. The topics i wanted anyone to brief is :

  1. How to Know that the Android app have enabled the Notifications
  2. Send data to the App only when Notifications are enabled
  3. Is there any example that clear the above doubts ? Thanks
Parents
  • There are several examples in our SDK that is using notifications, e.g. Heart rate or UART. Note that sd_ble_gatts_hvx will return an error if you are trying to send notifications and it's not enabled. Are you sure that you are not using bonding, so the state of the CCCD's are preserved across connections (with the known device as per spec).

Reply
  • There are several examples in our SDK that is using notifications, e.g. Heart rate or UART. Note that sd_ble_gatts_hvx will return an error if you are trying to send notifications and it's not enabled. Are you sure that you are not using bonding, so the state of the CCCD's are preserved across connections (with the known device as per spec).

Children
Related