stanleyhuangyc / Freematics

Official source code repository for Freematics
https://freematics.com
425 stars 346 forks source link

Don't split received messages #87

Closed lalten closed 4 years ago

lalten commented 5 years ago

I had it quite often that "xbee" communication is so slow or unfortunately timed that messages get split in two. Currently here are two garbage bytes that are appended to every message. That's why often messages from the GSM module can't be parsed correctly.

This PR fixes the incorrect splitting by removing the last two bytes form every transmission.