Hi,
how can I add TaskmanagerIo tasks in an array ?
I have an array of classes which includes a function controlValve().
I have tried this :
thisPiControl=PiControl[picIdx];
taskIdPiControl[picIdx] = taskManager.scheduleFixedRate(VdmConfig.configFlash.valvesControlConfig.valveControlConfig[picIdx].ts*1000, [] {
UART_DBG.println("pic call");
thisPiControl.controlValve();
});
But the call is always the same index of the class.
best regards
Werner