Hi friends, i am writing a program to communicate to another computer via serial port, i am sending my bytes for every 1 sec, strange thing is happening which i dont understand that on every iteration of my while loop my byte index is shifting, please can anybody tell me whats going on with my code
plz see attachement files
Solved! Go to Solution.
Well, your immediate issue is that you are sending 6 bytes, but only reading 5.
Other issues you have:
If you want even better ideas for serial communication, you should really watch this: VIWeek 2020/Proper way to communicate over serial