Closed eyuan-creare closed 2 years ago
Here is a good article on misalignment and type punning
Sorry for all the shenanigans! I accidentally pushed to main instead. I'll reopen this pull request when everything is straightened out..
Added checks to ensure buffer is not overrun and that the length is sent as 4-bytes. The latter was tested with a message that erroneously has a 3-byte length: 0x02 0x08 0x00 0x00 0x03 0x00 0x00 0x04
@kxm-creare What other applications use this data stream? Should I test a hearing aid script to ensure I did not bugger up 4-character messages?
@kxm-creare, Hmm...I don't remember if we disabled the predefined pages or not. I'm pretty sure that we didn't expose them for any of our ASA participants. Yes, maybe the reason is because we disabled them!
I agree that I don't think that Haley tested any of that functionality. So, whether or not they are disabled, they are not tested.
Added callback for multibyte serial messages. Tested using Realterm to send:
See attached script that modified an SD Card Writer example to register a callback function DataStream_example.zip
Here is background info copied from SerialManagerBase.h