Display byte array in LCD

Hi,

I am creating a project where I wish to eventualy both save the ip address "ip[]" to eeprom and also display it on the lcd display.

In the example code ip is defined as byte ip[] = { 10, 0, 0, 177 };

When I try to print this to the LCD using lcd.print(ip) the compiler generates an error. I understand the types are different, just no sure how to convert them to a format (or string) the LCD will display. Any help will be greatly appriciated.

Thank you.

You have an array of bytes. Coincidentally, the lcd.print statement knows how to print a byte. Iterate through the array, and print each byte. Print whatever you like between the bytes.

Thanks Paul. That helped. I just ended up printing each of the individual array items with a "." in between them.