Hi,
Is there a difference if I use read or write PID of a parameter when doing SetParameter (both for Automation.Element and SLProtocol.SetParameter)?
Hi Adjin,
As a general rule, you should perform sets on the write parameter as logic could be associated with it such as sending a set command to the device or other operations.
If you were to set directly on the read parameter in such case, the user would see the value immediately on the element UI but the set towards the device could fail. When the next polling cycle comes it reverts to the old value, leading to a bad user experience and possible confusion.
This is of course use case dependent and there are scenarios where you want to set directly on the read parameter but as a general rule, you should perform the sets on the write.