Logging hex string using server.log

Hi & help
I have a string of 8 bit hex values, e.g., 0x1a,0x34,0xAA,0xBB, returned as a string using
local rd_str= i2c.read().
My i2c bus analyzer shows the correct values are sent, and I can “print” the correct values as decimal one at a time, say the forth byte, using
server.log( rd_str[3])
which yields
on the device log, but cannot figure out how to print the complete string either in decimal or in hex.

Try this:

local s = ""; foreach(b in rd_str) s+=format("%02x ", b); server.log(s);

Works, thank You, Best ~Martin