The errors are a result of you defining loop() within setup()
void setup() {
pinMode(ledPin, OUTPUT);
int x;
void loop() {
for (x = 1; x < 4; x = x + 1 ) {
digitalWriteFast(ledPin, HIGH); // LED on...
Did you try something like this yet?
for ( uint8_t i = 0; i < 8; i++ ) {
char buffer;
sprintf(buffer, "%02X", msg.buf);
Serial.print(buffer);
}
Just FYI. You probably should only...