Hex
Powershell
- Display hexadecimal in powershell - https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/format-hex?view=powershell-7.1
Command line
Data
char str2 [] = {0xF2, 0x5A, 0x02, 0xE0, 0xB8, 0x07, 0x34, 0x2D, 0x00, 0x3E, 0x67, 0x07, 0x22, 0xDC, 0x4D, 0xED, 0x38, 0xDF, 0xEC, 0x33, 0x61, 0x00, 0x00, 0x7D};
for (int i = 0; i < sizeof (str2); i++) { Serial.print(str2[i]); }
Hex Write
- Use mySerial.write instead of mySerial.print, avoid lost of 0x00