TeensyWolf
Well-known member
T4.1 project here.
I'm expecting a serial packet, packet length can vary, and can be > 100 bytes (will have to adjust buffer size).
I'm polling, so I don't want to process the packet until I receive all the bytes. The 2 last bytes are 0x0D 0x0A.
Can I query the buffer to look at the last byte or two?
Or should I be loading the incoming bytes into a separate array, then I can index those bytes?
Thanks.
I'm expecting a serial packet, packet length can vary, and can be > 100 bytes (will have to adjust buffer size).
I'm polling, so I don't want to process the packet until I receive all the bytes. The 2 last bytes are 0x0D 0x0A.
Can I query the buffer to look at the last byte or two?
Or should I be loading the incoming bytes into a separate array, then I can index those bytes?
Thanks.