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?
There are many protocols that support it. Take Teltonika decoder for example.
It seems that making .decode() return a List<Position> is enough.
I have a device that from time to time send messages with multiple positions stored while network was down.
I can use a
FrameDecoderto split the message in multiple single position messages and return aList<ChannelBuffer>to theProtocolDecoder.What do I do in the
ProtocolDecoderto store the multiplePositionI get after decoding?Are there any protocols in Traccar similar to this one I'm describing so I can do the same?