I need to print mentioned below byte array on the serial monitor screen of Arduino IDE
char b[]= {'0x7E', '0x00', '0x1C','0x90', '0x00', '0x13', '0XA2', '0x00', '0x41', '0x58', '0x1C', '0xCB', '0xFF', '0xFE', '0xC1', '0x7C', '0x00','0x0F', '0x00', '0x01', '0x00', '0x00', '0x37', '0x46', '0x46', '0x46', '0x00', '0x00', '0x00', '0xE7' };
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.println(b[]);
delay(500);
}
But whenever I am trying a print, the error problem was there which was not resolved which is
C:\Users\Misha\Desktop\test\Test_2\Test_2.ino: In function 'void loop()':
Test_2:8:18: error: expected primary-expression before ']' token
Serial.println(b[]);
^
exit status 1
expected primary-expression before ']' token
Any suggestions on this will be great help.
b[]
? array variable is simplyb
.Serial.println(b)
also but its printing only the LSB value, I am not able to print the MSB values.print
and invalid syntax will not help with it