XBee Send to neighbours only


I have an ZB XBee S2 series in a mesh network.

Is that possible to send a message to neighbours only (i mean to only the other XBee’s in range).

I have tried to use the ND command, unfortunately it gives all the network XBee’s.

Any hints are welcome.

If you want to send data to all modules of network then send it to broadcast address 0xFFFF.

If you want only immediate modules connected to receive message the you can send broadcast message with BH parameter set to 1.