How to decode multiple positions in a single message?

gustavofarias7 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 Tananaev7 years ago

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

gustavofarias7 years ago

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