# Xbee - in MicroPython communication by BLE (bluetooth) error ENOBUFS

**URL:** <https://forums.digi.com/t/xbee-in-micropython-communication-by-ble-bluetooth-error-enobufs/28952>\
**Category:** XBee - DigiMesh\
**Tags:** micropython, bluetooth, ble, digimesh, xbee\
**Created:** [December 22, 2023, 6:27am UTC](https://forums.digi.com/t/xbee-in-micropython-communication-by-ble-bluetooth-error-enobufs/28952 "2023-12-22T06:27:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Armiks](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@Armiks](https://forums.digi.com/u/Armiks)\
**Post date:** [December 22, 2023, 6:27am UTC](https://forums.digi.com/t/xbee-in-micropython-communication-by-ble-bluetooth-error-enobufs/28952/1 "2023-12-22T06:27:34Z")

</div>

Hi, I have a problem with the stability of sending data from Xbee via bluetooth (to android application).  
In MicroPython in the main loop I have a simple code sending 40 characters (the program sends 5600 characters per second):

```auto
try:
    relay.send(relay.BLUETOOTH, ("1234567890123456789012345678901234567890")
except OSError as e:
    print("ERR{}".format(e))

utime.sleep_ms(70)

```

I perform the tests on the Digi XBee 3 XK3-Z8S-WZM development kit.  
One module has been sending data correctly for 4 hours (but crashes after that…), the other one reports an error [Errno 7105] ENOBUFS after about 5 minutes.  
Why such a difference in the operation of the same modules?  
How to proceed in case of such an error?  
For now I restart the modules, is there any programmatic way to get out of this error?  
Is there any other way for the module to connect to android? I tried searching for devices via ble.gap\_scan, but the mac address of the tablet does not appear.

---

<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:** [January 8, 2024, 2:42pm UTC](https://forums.digi.com/t/xbee-in-micropython-communication-by-ble-bluetooth-error-enobufs/28952/2 "2024-01-08T14:42:17Z")

</div>

this looks as though you are not setting up the buffers properly. That is what the Error message is referring to.
