Page 1 of 1

control script for removing periphery address

Posted: Wed Jan 15, 2020 5:15 pm
by mcmullan
How do you delete an address config via scripting without deleting the actual dp?

Re: control script for removing periphery address

Posted: Wed Jan 15, 2020 6:44 pm
by leoknipp
If you want to delete a config simply do a dpSet() for the _type attribute with value "0" (null).

Best Regards
Leopold Knipp
Senior Support Specialist

Re: control script for removing periphery address

Posted: Thu Jan 16, 2020 1:46 pm
by gschijndel
I would advise to use the constant 'DPCONFIG_NONE' instead of the value zero for readability.

Re: control script for removing periphery address

Posted: Tue Jan 21, 2020 5:03 pm
by mcmullan
dpSet("System1:global_vars.NameDemo:_address.._type", DPCONFIG_NONE);

Seems to do the trick.

Thanks!!