Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
Correcting my own advice. In XBee.h, the final routine should use
serial.write. Sorry.
Here is the text:
void XBee::sendByte(uint8_t b, bool escape) {
if (escape && (b == START_BYTE || b == ESCAPE || b == XON || b == XOFF)) {
// std::cout << "escaping byte [" << toHexString(b) << "] " << std::endl;
Serial.write(ESCAPE);
Serial.write(b ^ 0x20);
} else {
Serial.write(b);
}
}
Original comment by Cayenne...@gmail.com
on 17 Dec 2011 at 3:20
Original comment by andrew.rapp@gmail.com
on 2 Feb 2014 at 6:43
Original issue reported on code.google.com by
gzio...@gmail.com
on 9 Dec 2011 at 11:28