UNO R4 MINIMA with multiple messages to write CanMsg

uint8_t const msg_data[] = {0xCA,0xFE,0,0,0,0,0,0};
memcpy((void *)(msg_data + 4), &msg_cnt, sizeof(msg_cnt));
CanMsg msg(CAN_ID, sizeof(msg_data), msg_data);

It is pretty simple to understand with one Can message. It works just fine.
My task has unfortunately to write many of can Msg. from the example code https://docs.arduino.cc/tutorials/uno-r4-minima/can/, it can successfuly write canmsg only first message...
My question is how can I write many canmsg?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.