Hi @korttoma,
Just an other question,
II'm also using PLEG.
Is there a way to compeer the last value against the new value and only IF these values are different we sending a this new value.
some thing like :
local temp = luup.variable_get("urn:upnp-org:serviceId:TemperatureSensor1","CurrentTemperature", 35)
local oldTemp = luup.variable_get("urn:upnp-org:serviceId:TemperatureSensor1","VAR_1", 14)
if temp != oldTemp then
luup.call_action("urn:upnp-arduino-cc:serviceId:arduino1", "SendCommand", {radioId="14;2", variableId="VAR_1", value=temp}, 3)
end
Thanx