Eu estou tentando fazer com que dois arduinos comuniquem entre eles usando Xbee's. Mas quando eu tento mandar números eu recebo simbolos ASCII, por exemplo se eu digito 42 no monitor eu recebo um asterisco (*). Como é q eu posso mudar isso? O código que eu estou usando é esse
#include <SoftwareSerial.h>
#define Rx 0 // DOUT to pin 6
#define Tx 1 // DIN to pin 7
SoftwareSerial Xbee (Rx, Tx);
void setup() {
Serial.begin(57600); // Set to No line ending;
Xbee.begin(57600); // type a char, then hit enter
delay(100);
}
void loop() {
if(Serial.available()) { // Is serial data available?
char outgoing = Serial.read(); // Read character, send to XBee
Xbee.print(outgoing);
}
if(Xbee.available()) { // Is data available from XBee?
char incoming = Xbee.read(); // Read character,
Serial.println(incoming); // send to Serial Monitor
}
delay(50);