Hy everybody,
I’m having some issue using handler function on legato 16.01.
I want write a simple application that triggers an handler function when the network registration state changes.
static void NetRegStateHandlerFunc(le_mrc_NetRegState_t state, void *contextPtr);
COMPONENT_INIT{
...
...
le_mrc_AddNetRegStateEventHandler((le_mrc_NetRegStateHandlerFunc_t) NetRegStateHandlerFunc, NULL);
....
}
static void NetRegStateHandlerFunc(le_mrc_NetRegState_t state, void *contextPtr){
LE_INFO("INTO HANDLER\n");
}
For some reason even if the registration state changes the handler function is not triggered.
Any hint?
Giorgio