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);
   

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 $


Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > Serial Communication Arduino Electric IMP - missing bits


arduino

Comments

Popular posts from this blog

Convierte tu Raspberry en un NAS. Firmware fvdw-sl 15.3 - Raspberry Pi Forums

How to format a Get Request

avrdude: verification error, first mismatch at byte 0x0000 0x0c != 0x62