MirkoZhou:
Thank you, Bronson. But how can I send string as byte?The light meter manual mentions the command needs to be String such as "00541 ".
You can do:
byte msg1[] = {0x03, 0xBC, 0x0D, 0x0A}; //Dont know what BCC is
mySerial.write(0x02);
mySerial.print("00541 ");
mySerial.write(msg1, sizeof(msg1));
I don't know what BCC is, so I just write 0xBC on my snippet