1 Reply Latest reply on Jan 18, 2016 5:17 AM by rvaaraniemi RSS
    rvaaraniemi Explorer

    How to pass params to task started with twTasker_CreateTask?

    Hi,

     

    The C SDK API says that the function type given in twTasker_CreateTask is twTaskFunction. In twTaskFunction definition there is a void pointer called params that should contain "A pointer to the parameters of the function."

     

    How can I pass some parameters to the function if twTasker_CreateTask only accepts two parameters: a wait time and a function pointer? Should there be a third parameter in the twTasker_CreateTask? It seems the params pointer is always NULL / 0 (I checked the places where tickTimerCallback is called).

     

    BR,

    Risto Vääräniemi