How to obtain altid variable of a device

Like the title say, how to obtain altid variable of a device? i want to get the altid variable so i could use it to do something but somehow, i’m unable to get the variable, i try:

local sendbinary = luup.variable_get("urn:upnp-org:serviceId:SwitchPower1", "altid", lul_device)

but without luck

Thank
Mic

altid is an attribute not a variable. Try:

local sendbinary = luup.attr_get ('altid', lul_device)

Right on thanks alot