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?
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]
Best Home Automation shopping experience. Shop at Ezlo!
© 2024 Ezlo Innovation, All Rights Reserved. Terms of Use | Privacy Policy | Forum Rules