Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to update data in Softdevice Buffer after sd_ble_gatts_hvx call ?

Hi,

After sd_ble_gatts_hvx() call, is it possible to change or delete value in softdevice buffer before a connection event ?

Thanks by advance for your help

Best regards,

Parents
  • Hello,

    If you want to sample some data right before the next connection interval, I suggest you look into the radio notification module. There is a good guide here.

    Set the notification to trigger before the event by setting NRF_RADIO_NOTIFICATION_TYPE_INT_ON_ACTIVE, and a distance at your choise (e.g. NRF_RADIO_NOTIFICATION_DISTANCE_800US). This will give you an event 800µs before the next connection (interval), where you can use this to sample any data you want to send to the other device.

     

    Check out the guide in the link, and see if it can be of use.

     

    Best regards,

    Edvin

Reply
  • Hello,

    If you want to sample some data right before the next connection interval, I suggest you look into the radio notification module. There is a good guide here.

    Set the notification to trigger before the event by setting NRF_RADIO_NOTIFICATION_TYPE_INT_ON_ACTIVE, and a distance at your choise (e.g. NRF_RADIO_NOTIFICATION_DISTANCE_800US). This will give you an event 800µs before the next connection (interval), where you can use this to sample any data you want to send to the other device.

     

    Check out the guide in the link, and see if it can be of use.

     

    Best regards,

    Edvin

Children
Related