Teltonika Protocol Decoder - Add "ACCIDENT" alarm

Joystick2 years ago

Would below be the correct code for adding an additional alarm to TeltonikaProtocolDecoder?
I am not getting any errors when I build the code, but wont be able to generate a Accident alarm to test it so want to make sure I am correct with the code.

    register(247, fmbXXX, (p, b) -> {
        p.set(Position.KEY_ALARM, b.readUnsignedByte() == 1 ? Position.ALARM_ACCIDENT : null);
    });
Anton Tananaev2 years ago

Do you have documentation?

Joystick2 years ago

Its is in the AVL Listing for FMC130 devices, refer to link..... io247

https://wiki.teltonika-gps.com/view/FMC130_Teltonika_Data_Sending_Parameters_ID

Anton Tananaev2 years ago

Seems correct.