- Sometimes the buf is NULL in the
recv_cbcallback. - Sometimes the
recv_cbcallback is not entered at all.
- The
buf == NULLcase is caused by evt->data_status == BT_HCI_LE_ADV_EVT_TYPE_DATA_STATUS_RX_FAILED - The
recv_cb not enteredcase is caused by *buf->len < sizeof(evt)