Hello!
I want to get enhanced notifications just in my application similar to how it is done in Wireless UART.
But as I have mentioned in the main query for some reason it does not seem to work.
This is how my generic call back function looks like:
void BleApp_GenericCallback(gapGenericEvent_t *pGenericEvent)
{
switch (pGenericEvent->eventType)
{
case gControllerNotificationEvent_c:
{
bleNotificationEvent_t event = pGenericEvent->eventData.notifEvent;
bleResult_t result = event.status;
LOG("controller notification received: %d status %d", event.eventType,result);
if(result == gHciUnknownHciCommand_c){
LOG("Unknown hci command!");
}
}
break;
}
}
Whenever I subscribe to a enhanced notification. Inside gControllerNotificationEvent_c case I always get:
event type = gNotifEventNone_c
event status = gHciUnknownHciCommand_c.