Hi All,
Using serial communication between PC and microcontroller device to send/receive set of commands.
I send a first request command to a device, and based on the response received need to send a next command. Till then I do not want to send any further commands.
I tried using a private member variable between send/receive functions by unset/set. Looks like send function is not able to see change in a variable from response function.
Can someone provide me better approach to resolve this? How about state machine usage?
Thanks,
Anita
Bookmarks