CAN-BUS getCanId Question


Another noob question: How do I use the getCanId function? Could someone post an example?

Thank you!!

I think I already figured it out. Sorry to jump the gun on asking a question in the forum.

hey, you can ask any question here!!

every time i found some question about can bus shield, i am very excited! :smiley:

Would you mind sharing what you figured out? I have the same question, I’m assuming it is related to getCanId() but not sure how to use the function.

Answering my own question

I created a variable to store the CanId

unsigned long msgCanId = 0;

Then read the CanId in to the variable using

msgCanId = CAN.getCanId();

Still looking for information on masks and filters if anyone can help with examples.

Check here: