Hi!
What is the simplest way of sending a HEX array like the one bellow to a serial device?
(0xAF,0xAF,0x00,0x00,0xAF,0x80,0x01,0x0C,0x02,0x00,0x6C,0x80,0x12,0x09,0x00,0x07,0x00,0x00,0x00,0x01,0xAB,0x0D,0x0A)
Hi!
What is the simplest way of sending a HEX array like the one bellow to a serial device?
(0xAF,0xAF,0x00,0x00,0xAF,0x80,0x01,0x0C,0x02,0x00,0x6C,0x80,0x12,0x09,0x00,0x07,0x00,0x00,0x00,0x01,0xAB,0x0D,0x0A)
byte hArr[] = {0xAF,0xAF,0x00,0x00,0xAF,0x80,0x01,0x0C,0x02,0x00,0x6C,
0x80,0x12,0x09,0x00,0x07,0x00,0x00,0x00,0x01,0xAB,0x0D,0x0A};
Serial.write(hArr, sizeof(hArr));
If HEX array means 'array of bytes with hex initilization' and serial device means Serial.