Arduino Uno, XBee S1, API

Dear Forum,

I have project that use Arduino Uno and XBee S1 to send some data.
At the first time, I tried to use manual code in AT (transparent) mode.
But I find some difficulties in coding it because my topology is not P2P, but Star.
and then when I read this (http://code.google.com/p/xbee-api/wiki/WhyApiMode) article,
I found that it's better for me to use API mode for my project.

but I have difficulities on understanding the xbee library.
Here is where I get the XBee API library: http://code.google.com/p/xbee-api/downloads/list
And this is the explanation of xbee.h (which is expalantion about xbee api library): http://code.google.com/p/xbee-api/downloads/list
and this is how to configure for API: GitHub - andrewrapp/xbee-api: Java library for communicating with XBee radios

So, the question is, could anyone provide me a simple example to code it for Star Topology?

Thank you in advance :slight_smile:

the configuration for API in X-CTU:
ftp1.digi.com/support/documentation/90001003_a.pdf