Topic: Only 2 values of a parameter should change the Sensor Satus.
The gps device sends me a parameter where the value could be a lot of values.
Can I have a sensor that can change its state according with the value of the parameter ONLY when 20 or 21 comes as value?
When 20 value comes, I want to change the status a Disconnected.
When 21 value comes, I want to change the status to Connected
Any other value SHOULDN'T change the status of the sensor. Only 20 and 21.
param_x = 20 -> State of sensor: Disconnected
param_x = 14 -> State of sensor: Disconnected (Still disconnected, because only 20 and 21 will affect the State of sensor)
param_x = 21 -> State of sensor: Connected
param_x = 10 -> State of sensor: Connected (Still connected, because only 20 and 21 will affect the State of sensor)
Thanks so much for taking time to answer my question.