Skip to main content
Code formatting and typo fixes.
Source Link
timemage
  • 5.7k
  • 1
  • 15
  • 27

Well had a bit of luck after spending all day on this.

arduino unoArduino UNO (sender): Like mentioned by chrisl, use Serial.writeSerial.write and not Serial.printSerial.print

''' mySerial.write(sonar.ping_cm()) }'''

mySerial.write(sonar.ping_cm());

uno wifiUNO Wifi (receiver):

''' Serial.println(mySerial.readString()); ''''

Serial.println(mySerial.readString());

So, instead of mySerial.read imySerial.read I used mySerialmySerial.readString.readSting This is most likely a obvious mistake to almost everybody here,here; took me two days. sighSigh.

Well had a bit of luck after spending all day on this.

arduino uno (sender) Like mentioned by chrisl use Serial.write and not Serial.print

''' mySerial.write(sonar.ping_cm()) }'''

uno wifi (receiver):

''' Serial.println(mySerial.readString()); ''''

So instead of mySerial.read i used mySerial.readSting This is most likely a obvious mistake to almost everybody here, took me two days. sigh

Well had a bit of luck after spending all day on this.

Arduino UNO (sender): Like mentioned by chrisl, use Serial.write and not Serial.print

mySerial.write(sonar.ping_cm());

UNO Wifi (receiver):

Serial.println(mySerial.readString());

So, instead of mySerial.read I used mySerial.readString. This is most likely a obvious mistake to almost everybody here; took me two days. Sigh.

correcting mistake
Source Link

Well had a bit of luck after spending all day on this.

arduino uno (sender) Like mentioned by chrisl use Serial.write and not Serial.print

''' if(mySerial.available()) { SerialmySerial.write(mySerialsonar.readping_cm()) }'''

uno wifi (receiver):

''' Serial.println(mySerial.readString()); ''''

So instead of mySerial.read i used mySerial.readSting This is most likely a obvious mistake to almost everybody here, took me two days. sigh

Well had a bit of luck after spending all day on this.

arduino uno (sender) Like mentioned by chrisl use Serial.write and not Serial.print

''' if(mySerial.available()) { Serial.write(mySerial.read()) }'''

uno wifi (receiver):

''' Serial.println(mySerial.readString()); ''''

So instead of mySerial.read i used mySerial.readSting This is most likely a obvious mistake to almost everybody here, took me two days. sigh

Well had a bit of luck after spending all day on this.

arduino uno (sender) Like mentioned by chrisl use Serial.write and not Serial.print

''' mySerial.write(sonar.ping_cm()) }'''

uno wifi (receiver):

''' Serial.println(mySerial.readString()); ''''

So instead of mySerial.read i used mySerial.readSting This is most likely a obvious mistake to almost everybody here, took me two days. sigh

Source Link

Well had a bit of luck after spending all day on this.

arduino uno (sender) Like mentioned by chrisl use Serial.write and not Serial.print

''' if(mySerial.available()) { Serial.write(mySerial.read()) }'''

uno wifi (receiver):

''' Serial.println(mySerial.readString()); ''''

So instead of mySerial.read i used mySerial.readSting This is most likely a obvious mistake to almost everybody here, took me two days. sigh