Serial Communication ESP and Arduino

Deva do you know how you would code this so it is correct ?

If you use SerialTransfer.h, the data is guaranteed to be sent and received reliably. The library automatically packetizes and parses the data for you and comes with many examples.

Of course i can make something up that will be a bit more reliable, but it is your school project.

have a look at : Robin2 's

The methods there may seem like a form of overkill, but they excel in reliability and are 'non-blocking'

have you checked to see if there is anything available in the buffer before you do

 data1 = s.read(); 

sorry for the late responds, and yes i get it, it's my school project thank you for all the help!

It's not that we don't want to help, If there are specific issues you don't understand, we can try and point you in the right direction.

yea i get it, thank for the help

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.