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

BLE_EVT_TX_COMPLETE and which characteristic sent a notifiation

Hi all! It`s possible to know in event BLE_EVT_TX_COMPLETE which characteristic sent a notifiation? I have 2 characteristic and depending on which one of them sent notification, it is necessary to produce different action. This is a pseudocode:

static void on_ble_evt(ble_evt_t *p_ble_evt)
{
...
   case BLE_EVT_TX_COMPLETE:
   {
   if (characterictic1_sent)
     do_sums1();
   else if (characterictic2_sent)
    do_sums2();
   }
...
}

Thanks!

Parents Reply Children
No Data
Related