# Can I convert a XBee64BitAddress object of the xbee python library to a string?

**URL:** <https://forums.digi.com/t/can-i-convert-a-xbee64bitaddress-object-of-the-xbee-python-library-to-a-string/21314>\
**Category:** XBee - Zigbee\
**Tags:** python-xbee, xbee-library, python, xbee3\
**Created:** [April 24, 2020, 4:23am UTC](https://forums.digi.com/t/can-i-convert-a-xbee64bitaddress-object-of-the-xbee-python-library-to-a-string/21314 "2020-04-24T04:23:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pablovi96](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@pablovi96](https://forums.digi.com/u/pablovi96)\
**Post date:** [April 24, 2020, 4:23am UTC](https://forums.digi.com/t/can-i-convert-a-xbee64bitaddress-object-of-the-xbee-python-library-to-a-string/21314/1 "2020-04-24T04:23:21Z")

</div>

Hi,

Im recollecting the mac addresses of my zigbee network whit a python program. The problem I have is that the addresses I get are a XBee64BitAddress object and I want them to be strings. is there anyway to convert XBee64BitAddress object into str?

---

<div class="post-metadata">

**Author:** ![mathur](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@mathur](https://forums.digi.com/u/mathur)\
**Post date:** [April 24, 2020, 5:13am UTC](https://forums.digi.com/t/can-i-convert-a-xbee64bitaddress-object-of-the-xbee-python-library-to-a-string/21314/2 "2020-04-24T05:13:05Z")

</div>

Hi pablovi96

Have you tried sending AT command querying “SL” parameter? Module should respond back with lower half of address to this command.

Mathur  
Digi Technical Support

---

<div class="post-metadata">

**Author:** ![pablovi96](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@pablovi96](https://forums.digi.com/u/pablovi96)\
**Post date:** [April 27, 2020, 2:59am UTC](https://forums.digi.com/t/can-i-convert-a-xbee64bitaddress-object-of-the-xbee-python-library-to-a-string/21314/3 "2020-04-27T02:59:40Z")

</div>

But for having all the conected devices address I would have to send that AT parameter to each device, would I?  
I already have this addresses in XBee64BitAddress objects the only thing I want is to save it in other variable type like bits, int or string.

---

<div class="post-metadata">

**Author:** ![pablovi96](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@pablovi96](https://forums.digi.com/u/pablovi96)\
**Post date:** [April 27, 2020, 5:52am UTC](https://forums.digi.com/t/can-i-convert-a-xbee64bitaddress-object-of-the-xbee-python-library-to-a-string/21314/4 "2020-04-27T05:52:33Z")

</div>

Solved!

It was a list of XBee64BitAddress objects so I had to save in diferent vaiables and then do str(variable).

silly fail on my part…
