Error after IoT migrated to v11.2.0. unable to find "getTaskDriverProperties/getTaskDriverEvents"

Hi Team,

We have migrated our IoT code to v11.2.0.

After upgraded, we are getting below error.

  1. unable to get this property: getTaskDriverEvents

  2. unable to get this property: getTaskDriverProperties

Could you please us, what will be alternate code/property for above error in v11.2.0

Your help would be appreciated.

Thanks,

Sandip Dhakane


Hi Sandip,

the functionality has been moved to the TaskSettingsService.
You need to import it

import { TaskSettingsService } from ‘cmf-core-connect-iot’

..

@DI.Inject(“TaskSettingsService”)
private service: TaskSettingsService;

and then you can use it like before:

Or am I misunderstanding you?

Best regards,
Maximilian

Thanks a lot Maximilian!. Above mentioned solution worked. You are a constant source of support when things get tough.