Hi
I have a small program which is running perfectly with the hardwired serial, I am trying to forward these serial commands through the RF24 library. The below code works bar one problem, at the other end numbers say 34 come out a ascii in this case 51 52. I dont have this problem when I Serial.read() straight in to an int and use it, I apologise in advance I know whats going wrong but its a little hard to put in to words if anyone has an idea how to work around this that would be great.
int incomingByte;
if (Serial.available() > 0) {
// read the incoming byte:
radio.stopListening();
incomingByte = Serial.read();
radio.write(&incomingByte,sizeof(int));
radio.startListening();
}