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);
});
Do you have documentation?
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.