control script for removing periphery address

Find and share HowTos to various installations / configurations!
Search

Post Reply
4 posts • Page 1 of 1
User avatar
mcmullan
Posts: 14
Joined: Mon Jan 31, 2011 9:18 am

control script for removing periphery address

Post by mcmullan » Wed Jan 15, 2020 5:15 pm

How do you delete an address config via scripting without deleting the actual dp?

User avatar
leoknipp
Posts: 2245
Joined: Tue Aug 24, 2010 5:28 pm

Re: control script for removing periphery address

Post by leoknipp » Wed Jan 15, 2020 6:44 pm

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

gschijndel
Posts: 147
Joined: Tue Jan 15, 2019 2:12 pm

Re: control script for removing periphery address

Post by gschijndel » Thu Jan 16, 2020 1:46 pm

I would advise to use the constant 'DPCONFIG_NONE' instead of the value zero for readability.

User avatar
mcmullan
Posts: 14
Joined: Mon Jan 31, 2011 9:18 am

Re: control script for removing periphery address

Post by mcmullan » Tue Jan 21, 2020 5:03 pm

dpSet("System1:global_vars.NameDemo:_address.._type", DPCONFIG_NONE);

Seems to do the trick.

Thanks!!

Post Reply
4 posts • Page 1 of 1