there is no vlaue alarm general after decode

amin20 days ago

alarm value.jpg

there is no value in position object for general alarm. how to ger general alarm value?

Anton Tananaev20 days ago

What do you mean by value? It's either present or not.

amin20 days ago

alarm value2.jpg
please attention to io252 and alarm-> general in this photo, why there is different beetween io252 and alarm in this picture? io252 must be powercut when we decode data

Anton Tananaev20 days ago

Because those are completely different types of attributes.

amin20 days ago

decoder dose not convert 252 id to powercut string in this method:

    register(252, fmbxxx, (p, b) -> {
        p.addAlarm(b.readUnsignedByte() > 0 ? Position.ALARM_POWER_CUT : null);
    });
amin20 days ago

i edited above code to traacar refrence.