Skip to main content
Mselv
Associate
October 24, 2019
Question

how to store can messages in a buffer

  • October 24, 2019
  • 1 reply
  • 754 views

..

This topic has been closed for replies.

1 reply

Mselv
MselvAuthor
Associate
November 14, 2019

i found it myself. try to create a double array for read and write seprately and in main function use the pending loop call back. inside the pending loop call back receive the message using appropriate api.

once the message is received send that message to buffer using write buffer function.

now, the messages are stored in buffer. now in main loop create a logic where you check if there is a message in buffer and if yes send that can message to your desired destiation using appropriate api.