How to set up a command-based communication using I2C

Thanks, so the compiler packs the 24 bit into the struct. The structure should be byte aligned for an Arduino board. Perhaps that is a bug. I would use byte[4] for the whole package anyway.