main.cpp
/**
    * Handler called when a notification or an indication has been sent.
    */
Handler called when a notification or an indication has been sent.
Handler called when a notification or an indication has been sent .
void onDataSenthandler(const GattDataSentCallbackParams &params)
{
    if (params.attHandle == btnvaluehandle) {
        printf("BTN changed to %s\r\n", btnvalue == 1 ? "Pressed" : "Released");
    }
}
void onDataSenthandler ( const GattDataSentCallbackParams & params ) { if ( params . attHandle == btnvaluehandle ) { printf ( " \r \n " , btnvalue == 1 ? " " : " " ) ; } }
Handler called when a notification or an indication has been sent.
Handler called when a notification or an indication has been sent .