[Driver development ] Bad configuration Error upon device disabling


Regarding some drivers we developed for Ignition (7.9), I’ve noticed that after disabling a device running said driver, the following message appears every 10 seconds:

Device ‘example’ is disabled. Returning Bad_ConfigurationError.

I’ve also noticed, devices already disabled when the gateway starts, do not result in this error message. Does anyone know what might be the cause of this ?

Maybe something that is not being done on shutdown of the driver object ? This is using the AbstractTagDriver class.

Thanks in advance for any help,

Did you override shutdown() in your subclass of AbstractTagDriver?

Yes I did, I remove there the tags and stop device communication.

Make sure you also call super.shutdown() - I think the problem is some tags are not being removed from the address space.

The code that is logging the error you’re seeing can only get that far if there are still nodes in the address space for the disabled driver.

1 Like

Ah I see, must be forgetting to remove some tag. So removing all tags should fix it ? Or do you think it’s best to just call super.shutdown() ?

Well, super.shutdown() already removes the tags for you. Call that, then also do your own logic for disconnecting or whatever other cleanup you have to do.

1 Like

Ah I see. Thanks for the help!