Closed m2mer closed 6 years ago
sometimes uart message from telink chip was broken: [21:57:04.993] Uart received len 17: [21:57:04.999] 73 6d 61 72 74 00 04 00 38 00 24 00 07 01 00 01 ff [21:57:05.006] Uart received len 13: [21:57:05.006] 04 00 00 00 00 00 00 74 72 61 6d 73 00
while a whole meassage is: [21:57:04.881] Uart received len 30: [21:57:04.881] 73 6d 61 72 74 00 04 00 38 00 24 00 07 01 00 01 ff 04 00 00 00 00 00 00 74 72 61 6d 73 00
we need to repair them
add _uartBuf to store valid while not complete message
sometimes uart message from telink chip was broken: [21:57:04.993] Uart received len 17: [21:57:04.999] 73 6d 61 72 74 00 04 00 38 00 24 00 07 01 00 01 ff [21:57:05.006] Uart received len 13: [21:57:05.006] 04 00 00 00 00 00 00 74 72 61 6d 73 00
while a whole meassage is: [21:57:04.881] Uart received len 30: [21:57:04.881] 73 6d 61 72 74 00 04 00 38 00 24 00 07 01 00 01 ff 04 00 00 00 00 00 00 74 72 61 6d 73 00
we need to repair them