Replicating the output of the Serial Moniter


i using set of bluesmirf bluetooth modules communicate between 2 arduinos. currently, system works sending characters 1 module another, parsed in , acted upon. running problem have byte want turn integer, , send characters based on integer across connection. no matter how this, errors. either end sending not intend send, assume result translation error somewhere across line, or never ending string of random data being sent.
i getting results want when type integer want send serial moniter when code this.
code: [select]

void loop()
{
  if (serial.available())
  {
  bluetooth.println("255");
  delay(100);
  bluetooth.print((char)serial.read());
  }
}

i need know how replicate results of command bluetooth.print(charserial.read()); when start byte defined
code: [select]
byte sigbyte = b11111111

any appreciated


i need know how replicate results of command bluetooth.print(charserial.read()); when start byte defined
code: [select]
byte sigbyte = b11111111

any appreciated
i not sure understand mean. replicate results?


Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > Replicating the output of the Serial Moniter


arduino

Comments

Popular posts from this blog

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'