Does anyone have any suggestions for sending large strings of hex values to a serial port? Maybe I’m missing something obvious but I have searched the manual, forums, code examples and Google but cannot find an easy way to send large strings of HEX values without sending one at a time via serXputc.
For example, this is the command string I need to send to a device (in HEX):
02 89 89 1B 82 1B 83 FF 00 FE 03
I can use the following:
serBputc(0x02);
serBputc(0x89);
serBputc(0x89);
… and so on…
Any other suggestions other than forming a function with a loop?