Hello,
I want to know if it is possible to counting the number of sent advertisement and data packets separately by modifying the code. I have following questions:
1- Can I write a callback function which will be executed at each time an ADV or DATA packet is sent from the slave? Is it possible to write custom callback functions?
2- I know that in this post ( http://e2e.ti.com/support/low_power_rf/f/538/t/169928.aspx?pi239031352=2 ) Nick L. posted his code.
// Send the Notification
if (GATT_Notification( 0, &nData, FALSE )==SUCCESS)
{
counter++;
}
But this just helps to determine number of notifications sent. I am also interested in ACK packets with 0 payload length. How can I see the number of sent packets in total for keyfob? I will not use Wireless Network Processor (WNP) mode.
3- What is the name of the function which is executed when an ADV packet is sent? Does any of you notice it? I couldn't although I tried ' ctrl+shift+f '