Sending information when xbees' are in Range/Proximity of 10 feet

Hello,

I have a small project that I am working on. I am using the uno and nano arduino microcontrollers. I have wireless communication shields connected to both of them. I am using xbees to send data over this wireless network to communicate between the devices.

Problem:

I need the microcontrollers to only send data when they are within 10 feet of each other (This 10 foot value is in all directions). Otherwise, I need them to cease to communicate until the devices are back within 10 feet of each other.

Answers I NEED???

Can the xbee wireless communication devices detect distance between the two? If so how do I go about this? If not, are there any sensors or anything that can help me accomplish this task?

ALL HELP WILL HIGHLY BE RECOMMENDED

Thanks everyone,

-Jordan

jdb676:
I need the microcontrollers to only send data when they are within 10 feet of each other (This 10 foot value is in all directions). Otherwise, I need them to cease to communicate until the devices are back within 10 feet of each other.

Answers I NEED???

Use a tape measure.

It's the only way.

We see this sort of requirement crop up regularly here. There is no way you can do this. That is your answer.