Thanks for the response jyijyi!
I got the callback working based on your application.
The reference code (as seen here) is not correct, the following line:
tempSensor_ChangeHandlerRef_t clientHandlerFunc = secondLayerHandlerFunc;
has to be:
tempSensor_ChangeHandlerFunc_t clientHandlerFunc = secondLayerHandlerFunc;
Thanks again