With an Arduino Mega, I am communicating with a motor controller that provides an acknowledge char after it receives a command. Sending subsequent commands without an Ack is not recommended.
I want to create a function that uses a buffer to store strings (commands) that need to be transmitted. The transmission will only occur when the drive is ready for it via receiving an Ack char.
Can someone give me some direction? Should this be a FILO structure? Should I put it in a timer or can I run it continuously in the main loop. Are there any functions that can help with this, or do I have to implement this bluntly.