Arduino Leonardo and XBee S2 API router mode send data to XBee api coordinator

Hi Everyone
I want to use XBee API mode to send some temperature sensor data picked by arduino leonardo to computer.
Both XBee modules were set to API mode. The XBee connected to Arduino were set to API router. Pin TX1 RX0 were connect to XBee. The XBee API coordinator were connect to computer. the code of Arduino is underneath

#include <XBee.h>

#define LM35 A0
XBee xbee = XBee();
uint8_t payload[] = { 0, 0 };
XBeeAddress64 addr64 = XBeeAddress64(0x0013a200, 0x40abc8f5);
ZBTxRequest zbTx = ZBTxRequest(addr64,payload,sizeof(payload));
ZBTxStatusResponse txStatus = ZBTxStatusResponse();
int val = 0;
float temp = 0;
void setup()
{
 Serial1.begin(9600);
  while (!Serial1)
 {
   ;
 }
 xbee.setSerial(Serial1);
}

void loop()
{
 val = analogRead(LM35);
 temp = val * 0.48876;
 payload[0] = val >> 8&0x03;
 payload[1] = val&0xff;
 xbee.send(zbTx);
 delay(1000);
 }

I try in at mode the serial1 works.
I think the problem may be the program can’t activate the Serail1 port. But there is my opinion.
Can anyone tell me what to do? I will appreciate that.

Can anyone help me? I really stuck at it.

ZBTxRequest zbTx = ZBTxRequest(addr64,payload,sizeof(payload));

The zbTx instance is NOT bound to the data in payload. The data in payload was copied.

 payload[0] = val >> 8&0x03;
 payload[1] = val&0xff;
 xbee.send(zbTx);

Changing the data in payload will have NO impact on the zbTx instance.

If you need to send just simple data, put your router in AP=0 (transparent mode) and use a simple sketch with softwareserial serial.print() to send data. It's easyer than Xbee.h library

PaulS: ZBTxRequest zbTx = ZBTxRequest(addr64,payload,sizeof(payload));

The zbTx instance is NOT bound to the data in payload. The data in payload was copied.

 payload[0] = val >> 8&0x03;
 payload[1] = val&0xff;
 xbee.send(zbTx);

Changing the data in payload will have NO impact on the zbTx instance.

Sorry I didn't quite understand? Did you mean I shouldn't use payload in ZBTxRequest(addr64,payload,sizeof(payload)) How can I revise the code? Change the payload word?