# Best solution to send and receive data from UART to BLE on Xbee 3 (802.15.4)

**URL:** <https://forums.digi.com/t/best-solution-to-send-and-receive-data-from-uart-to-ble-on-xbee-3-802-15-4/29664>\
**Category:** XBee - 802.15.4\
**Tags:** micropython\
**Created:** [February 7, 2024, 6:50pm UTC](https://forums.digi.com/t/best-solution-to-send-and-receive-data-from-uart-to-ble-on-xbee-3-802-15-4/29664 "2024-02-07T18:50:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alme90](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@alme90](https://forums.digi.com/u/alme90)\
**Post date:** [February 7, 2024, 6:50pm UTC](https://forums.digi.com/t/best-solution-to-send-and-receive-data-from-uart-to-ble-on-xbee-3-802-15-4/29664/1 "2024-02-07T18:50:14Z")

</div>

Hi,  
with a Digi Xbee 3 (802.15.4) , what is the best solution to send data from UART to BLE and vice versa?

Thanks 😉

---

<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:** [February 8, 2024, 11:48am UTC](https://forums.digi.com/t/best-solution-to-send-and-receive-data-from-uart-to-ble-on-xbee-3-802-15-4/29664/2 "2024-02-08T11:48:32Z")

</div>

The best way is to use API mode. There are specific API frames for the XBee module that will do just that.

[https://www.digi.com/resources/documentation/digidocs/90002273/Default.htm#reference/r\_frame\_0xac.htm?TocPath=Frame%2520descriptions%257C\_\_\_\_\_24](https://www.digi.com/resources/documentation/digidocs/90002273/Default.htm#reference/r_frame_0xac.htm?TocPath=Frame%2520descriptions%257C _____ 24)

[https://www.digi.com/resources/documentation/digidocs/90002273/Default.htm#reference/r\_frame\_0xad.htm?TocPath=Frame%2520descriptions%257C\_\_\_\_\_25](https://www.digi.com/resources/documentation/digidocs/90002273/Default.htm#reference/r_frame_0xad.htm?TocPath=Frame%2520descriptions%257C _____ 25)
