I don't know how to write a code that convert a byte array to a char array in C++ (using an Arduino board) and publish mqtt. I tried to search but I don't understand.
Example
byte Code[3] = {0x00 ,0x01 , 0x83};
char byteTochar[3];
for (int i = 0; i <= 2; i++) {
Serial.printf("%d", Code[i]);
Serial.println();
client.publish("publish/data", byteTochar[i]);
}
Error message
converting to 'String' form initializer list would use explicit constructor 'String::String'(unsigned char, unsigned char)'
C, i guess.