When implementing ZCL based devices, it is sometimes necessary to know the task ID of the current thread so that an event timer can be enabled. When an implementation has multiple endpoints of the same type ( as does mine ) then it can be problematic to determine the task context within a zcl callback function such as those related to the identify cluster.
Is there an API call into the OSAL layer that would return the current taskid?