# xBee3 micropython AttributeError ble.gap\_connect

**URL:** <https://forums.digi.com/t/xbee3-micropython-attributeerror-ble-gap-connect/21199>\
**Category:** Python\
**Tags:** bluetooth, error, ble, github, xbee3\
**Created:** [March 17, 2020, 4:13am UTC](https://forums.digi.com/t/xbee3-micropython-attributeerror-ble-gap-connect/21199 "2020-03-17T04:13:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![digi\_xbee](https://avatars.discourse-cdn.com/v4/letter/d/258eb7/32.png) [@digi\_xbee](https://forums.digi.com/u/digi_xbee)\
**Post date:** [March 17, 2020, 4:13am UTC](https://forums.digi.com/t/xbee3-micropython-attributeerror-ble-gap-connect/21199/1 "2020-03-17T04:13:58Z")

</div>

Dear experts,  
I have tried to get the github bluetooth micropython examples running (xBee3 ZigBee with firmware 1009). The gap\_scan works well but when starting the github sample “xbee-micropython/samples/bluetooth/gap\_connect\_configuration/”, I get the following error lines in the output:

* * *

Traceback (most recent call last):  
File “/flash/main.py”, line 36, in  
AttributeError: ‘module’ object has no attribute ‘gap\_connect’

MicroPython v1.11-1290-g9da1b0c on 2019-11-14; XBee3 Zigbee with EFR32MG

* * *

As I have not modified any code line, this is quite weird (as e.g. “ble.gap\_scan” is found). I have formatted the device and then loaded only the main.py file - is there any library that I have to add (and where do I find it)?  
Sadly the documentation on everything regarding bluetooth/micropython is very little…  
Thanks in advance for any hint in the right direction!

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [March 17, 2020, 9:27am UTC](https://forums.digi.com/t/xbee3-micropython-attributeerror-ble-gap-connect/21199/2 "2020-03-17T09:27:59Z")

</div>

Digi XBee,

Please send an email to [tech.support@digi.com](mailto:tech.support@digi.com)

When doing so, please make sure to include the actual code you are working with along with any error messages and links to the code or documentation you are working with. This way we can test it as well to see if there is something missing.

Digi Support

---

<div class="post-metadata">

**Author:** ![tckr](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/tckr/32/2522_2.png) [@tckr](https://forums.digi.com/u/tckr)\
**Post date:** [March 27, 2020, 8:57am UTC](https://forums.digi.com/t/xbee3-micropython-attributeerror-ble-gap-connect/21199/3 "2020-03-27T08:57:12Z")

</div>

Hi,

If you look at the README file for the sample you are trying to run, you will see that the minimum firmware version for the sample to work on XBee 3 Zigbee is 100A (which has not yet been released). [https://github.com/digidotcom/xbee-micropython/tree/master/samples/bluetooth/gap\_connect\_configuration](https://github.com/digidotcom/xbee-micropython/tree/master/samples/bluetooth/gap_connect_configuration)
