How To Serial print hex values from string array

Hi !

I have one string array named sensorCommand.

String sensorCommand = 0xEF + 0x01 + 0xFF + 0xFF + 0xFF + 0xFF + 0x01 + 0x00 + 0x07 + 0x13 + 0x00 + 0x00 + 0x00 + 0x00 + 0x00 + 0x1B ;

How can i serial print these values ?

Need Help.

I have one string array named sensorCommand.

Actually, that line will not compile.

If anything, you have String array named sensorCommand.

string != String

If you feel that your really must use Strings (why ?) then the String class has a substring() method. That and a for loop will allow you to print each character of the String or several at a time if you want to.