Use default ip value

Does anyone know how i can read/write the buildin ip value for a device ?

Or is it not a good idea to use them?

-- read the ip address attribute
local ip = luup.attr_get("ip",deviceNum)
-- write the ip address attribute
luup.attr_set("ip","192.168.1.1",deviceNum)

see HERE

But also note in UI7 [tt]luup.ip_set[/tt] and the subtle difference from [tt]luup.attr_set[/tt].

[url=http://wiki.micasaverde.com/index.php/Luup_Lua_extensions#function:_ip_set]http://wiki.micasaverde.com/index.php/Luup_Lua_extensions#function:_ip_set[/url]