I have a device which sends status messages as a number to Traccar. The "Attribute Name" is "B0" and it will send either a 1, 2, or 3.
I would like to know how to use the computed attributes to convert each of these to meaningful test depending whether it is a 1, 2 or 3. I have tried using examples but I'm clearly missing something. Advice appreciated.
rssi == "0"? "Sin Señal GSM":
rssi == "1"? "Señal GSM Mala":
rssi == "2"? "Señal GSM Baja":Null
your expression should be something like this
Probably something like this:
B0 == 1 ? "one" : (B0 == 2 ? "two" : (B0 == 3 ? "three" : null))
I have a device which sends status messages as a number to Traccar. The "Attribute Name" is "B0" and it will send either a 1, 2, or 3.
I would like to know how to use the computed attributes to convert each of these to meaningful test depending whether it is a 1, 2 or 3. I have tried using examples but I'm clearly missing something. Advice appreciated.