How to decode multiple positions in a single message?

gustavofarias8 years ago

I have a device that from time to time send messages with multiple positions stored while network was down.

I can use a FrameDecoder to split the message in multiple single position messages and return a List<ChannelBuffer> to the ProtocolDecoder.

What do I do in the ProtocolDecoder to store the multiple Position I get after decoding?

Are there any protocols in Traccar similar to this one I'm describing so I can do the same?

Anton Tananaev8 years ago

There are many protocols that support it. Take Teltonika decoder for example.

gustavofarias8 years ago

It seems that making .decode() return a List<Position> is enough.