Ok, here's a fix that actually works: https://github.com/flocsy/traccar/commit/c1de08db7773eef6b1ed4a6e2b62f15d1df6a2a5
Sorry for the late.
I applied a patch to WatchProtocolEncoder, but I didn't completely test.
When I'll finish I'll write here a solution.
Hi, for anyone interested, it's been refactored, fixed and is merged to master now.
The issue is probably with encoding. If we need to send binary data, we shouldn't use
StringEncoder
in the first place.