I simply do slip.send(buff*,size) and it gives me nice slip packet, but with two 0xc0 in the end instead of one. this makes stream desynchronized and i loose packets on receiving side
I suppose it shall be only one 0xc0 in the end.
what i get:
[0xc0,data,0xc0,0xc0][0xc0,data,0xc0,0xc0]...
what i expect:
[0xc0,data,0xc0][0xc0,data,0xc0]...
thanks