Code to transmit data packets in API mode 1 ??

Hi,

I'm new to the forum and to XBees. I have two XBees one of which is placed on a shield plugged into an Arduino uno, which reads from six analogue inputs. I can read data packets from my X-CTU terminal, however I cannot find a way to get rid of escaped characters and transmit the actual value. For instance, my XBee address has got 0x13 in it, so I need to have it displayed as an actual 0x13 in the serial terminal instead of 0x7D 0x33. I tried changing the modem configuration with X-CTU, but if I modify it to API 1, the radios do not transmit anything any more.

I attach my code below, hope it helps.

Has anyone encountered this problem before?

Thank you very much for your help.

Transmitting2.ino (1.35 KB)

Hi again,

I realised I actually had to write two scripts (transmitter and receiver) and then modify the receiver one to get rid of escaped characters and have my code print 0x13 and 0x11 to the serial monitor. Sorry I probably should have done more research before posting the question!