Serial Communication Arduino Electric IMP - missing bits
i missing last few characters when sending string imp , arduino.
i running 19200 baud, pin 8.9 on software serial.
this code. individual characters read,however last few (varying) not added indata string reason???
// read serial empty
string indata = "";
while (impserial.available() > 0)
{
char character = impserial.read();
indata += character;
serial.println(character);
delay(10);
}
serial.println(indata);
// print out on screen
messageprint(indata);
i running 19200 baud, pin 8.9 on software serial.
this code. individual characters read,however last few (varying) not added indata string reason???
// read serial empty
string indata = "";
while (impserial.available() > 0)
{
char character = impserial.read();
indata += character;
serial.println(character);
delay(10);
}
serial.println(indata);
// print out on screen
messageprint(indata);
traces this:
serial killer ed homeless poun
serial killer ed homeless pound
serial killer ed homeless pounds
serial killer ed homeless pounds
serial killer ed homeless pounds o
serial killer ed homeless pounds of
serial killer ed homeless pounds of
serial killer ed homeless pounds of $
serial killer ed homeless pounds of $
serial killer ed homeless pounds of $
serial killer ed homeless pounds of $
serial killer ed homeless pounds of $
serial killer ed homeless poun
serial killer ed homeless pound
serial killer ed homeless pounds
serial killer ed homeless pounds
serial killer ed homeless pounds o
serial killer ed homeless pounds of
serial killer ed homeless pounds of
serial killer ed homeless pounds of $
serial killer ed homeless pounds of $
serial killer ed homeless pounds of $
serial killer ed homeless pounds of $
serial killer ed homeless pounds of $
Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > Serial Communication Arduino Electric IMP - missing bits
arduino
Comments
Post a Comment