# BT

**URL:** https://forum.amebaiot.com/c/arduino/bt/127.md

[Latest](https://forum.amebaiot.com/latest.md) · [Categories](https://forum.amebaiot.com/categories.md) · [Tags](https://forum.amebaiot.com/tags.md)

---

## [About the BT category](https://forum.amebaiot.com/t/about-the-bt-category/4530)

<div class="topic-metadata">

**Author:** [@M-ichae-l](https://forum.amebaiot.com/u/M-ichae-l)\
**Replies:** 0\
**Last updated:** [November 17, 2025, 6:07am UTC](https://forum.amebaiot.com/t/about-the-bt-category/4530 "2025-11-17T06:07:23Z")

</div>

For all topics related to Arduino SDK Bluetooth solution. 關於 Arduino SDK 藍牙方案.

---

## [Capture an image and transfer to mobile phone app through BLE](https://forum.amebaiot.com/t/capture-an-image-and-transfer-to-mobile-phone-app-through-ble/4915)

<div class="topic-metadata">

**Author:** [@kpyeo](https://forum.amebaiot.com/u/kpyeo)\
**Replies:** 1\
**Last updated:** [June 19, 2026, 2:01am UTC](https://forum.amebaiot.com/t/capture-an-image-and-transfer-to-mobile-phone-app-through-ble/4915 "2026-06-19T02:01:32Z")

</div>

Hi, Is it possible to transfer an image to a mobile phone app through BLE on with the AMB82-mini? I have not seen any examples and I don’t know if this is achievable. Any thoughts on this?

---

## [\[BLE\] Scan fails with "Scan Error" and "There is no scan" on Ameba Arduino D](https://forum.amebaiot.com/t/ble-scan-fails-with-scan-error-and-there-is-no-scan-on-ameba-arduino-d/4290)

<div class="topic-metadata">

**Author:** [@sksrhkd](https://forum.amebaiot.com/u/sksrhkd)\
**Replies:** 0\
**Last updated:** [July 30, 2025, 11:51am UTC](https://forum.amebaiot.com/t/ble-scan-fails-with-scan-error-and-there-is-no-scan-on-ameba-arduino-d/4290 "2025-07-30T11:51:41Z")

</div>

Hello, I am currently working on a project using the Ameba Arduino D environment, with the AMB21/AMB22 (RTL8721DM) board. The application uses BLE to scan for nearby advertising devices and transmits the data to an ext…

---

## [Should GATT\_PERM\_READ\_AUTHEN\_GET be (x & 0x02) instead of (x & 0x03)?](https://forum.amebaiot.com/t/should-gatt-perm-read-authen-get-be-x-0x02-instead-of-x-0x03/4291)

<div class="topic-metadata">

**Author:** [@Deqing\_Sun](https://forum.amebaiot.com/u/Deqing_Sun)\
**Replies:** 0\
**Last updated:** [July 30, 2025, 8:06pm UTC](https://forum.amebaiot.com/t/should-gatt-perm-read-authen-get-be-x-0x02-instead-of-x-0x03/4291 "2025-07-30T20:06:54Z")

</div>

I had code provisioningScanCharacteristic.setReadProperty(true); provisioningScanCharacteristic.setWriteProperty(true); //provisioningScanCharacteristic.setWritePermissions(GATT\_PERM\_WRITE); //provisioningScanCh…

---

## [RTL8720 (bw16) BLE UUID 128bit 簡化導致通訊失敗](https://forum.amebaiot.com/t/rtl8720-bw16-ble-uuid-128bit/4257)

<div class="topic-metadata">

**Author:** [@ray12978](https://forum.amebaiot.com/u/ray12978)\
**Replies:** 0\
**Last updated:** [July 21, 2025, 3:15am UTC](https://forum.amebaiot.com/t/rtl8720-bw16-ble-uuid-128bit/4257 "2025-07-21T03:15:03Z")

</div>

問題 我目前使用Ublox w306 RTL8720嘗試與三種不同廠牌的藍芽裝置進行連線，以下以A、B、C代稱，目前B與C可以連線，而A廠牌使用ESP32C3可以正常取得資料，而使用RTL8720時會失敗，使用A廠牌時RTL8720可以正常搜尋服務，但是後續無法與裝置成功溝通，只能用16bit UUID取得服務。 目前發現可能的原因是A廠牌的UUID結尾-0000-1000-8000-00805F9B34FB 與藍牙標準 UUID 相…

---

## [Rtl8720dn蓝牙广播数据无法更新](https://forum.amebaiot.com/t/rtl8720dn/4178)

<div class="topic-metadata">

**Author:** [@lalaland](https://forum.amebaiot.com/u/lalaland)\
**Replies:** 1\
**Last updated:** [June 24, 2025, 7:05am UTC](https://forum.amebaiot.com/t/rtl8720dn/4178 "2025-06-24T07:05:48Z")

</div>

在使用arduinoIDE对rtl8720dn进行开发时，使用蓝牙广播模式，代码如下： BLE.init(); BLE.configAdver()-\>setAdvType(GAP\_ADTYPE\_ADV\_NONCONN\_IND); BLE.configAdver()-\>setAdvData(pack,sizeof(pack)); BLE.beginPeripheral(); 我应该如何更新广播数据呢，我尝试关闭广播，重新设置广播…

---

## [藍芽與生成式AI整合疑問-amb82](https://forum.amebaiot.com/t/ai-amb82/3972)

<div class="topic-metadata">

**Author:** [@jc\_love](https://forum.amebaiot.com/u/jc_love)\
**Replies:** 1\
**Last updated:** [April 7, 2025, 2:21am UTC](https://forum.amebaiot.com/t/ai-amb82/3972 "2025-04-07T02:21:40Z")

</div>

大大好 手機藍芽app我使用範例:DoorUnlockOverBLEUart 生成式AI我使用範例:GenAIVision 分開使用都沒有問題,當我把兩個整合起來後,發現手機app的藍芽連線會閃退又連上,這樣的情況頻繁出現 請問是因為都有用到uart嗎?還是? 可否給些建議 謝謝

---

## [Bw16 wifi ble reconnect](https://forum.amebaiot.com/t/bw16-wifi-ble-reconnect/4008)

<div class="topic-metadata">

**Author:** [@TUDO\_XBOX](https://forum.amebaiot.com/u/TUDO_XBOX)\
**Replies:** 0\
**Last updated:** [April 3, 2025, 1:26am UTC](https://forum.amebaiot.com/t/bw16-wifi-ble-reconnect/4008 "2025-04-03T01:26:43Z")

</div>

I have a bw16 and I’m trying to use it, autoconfigure the wifi via ble, but when the chip restarts, it goes back to using ble again, I wanted it to automatically reconnect to the wifi already configured.

---

## [Has anyone managed to get the BLEV7RC\_CAR\_VIDEO example working?](https://forum.amebaiot.com/t/has-anyone-managed-to-get-the-blev7rc-car-video-example-working/3945)

<div class="topic-metadata">

**Author:** [@samlewis02](https://forum.amebaiot.com/u/samlewis02)\
**Replies:** 4\
**Last updated:** [March 25, 2025, 8:58am UTC](https://forum.amebaiot.com/t/has-anyone-managed-to-get-the-blev7rc-car-video-example-working/3945 "2025-03-25T08:58:02Z")

</div>

I have not had any success with the BLEV7RC example. Having followed all the instructions I cannot get the video working or the car movement controls. I have tried the app on an Android phone and on an iPad with the same…

---

## [App connection for AMB82-minin](https://forum.amebaiot.com/t/app-connection-for-amb82-minin/3623)

<div class="topic-metadata">

**Author:** [@ManiKandan](https://forum.amebaiot.com/u/ManiKandan)\
**Replies:** 17\
**Last updated:** [February 24, 2025, 3:48am UTC](https://forum.amebaiot.com/t/app-connection-for-amb82-minin/3623 "2025-02-24T03:48:56Z")

</div>

hai @Kelvin\_Huang I’m looking for add the camera module(AMB82-mini),in my app for that I’m writing code for first BLE advertise to connect in app,after that i try to send wifi ssid and password from my app,that module s…

---

## [有關BLE使用的功耗問題](https://forum.amebaiot.com/t/ble/3448)

<div class="topic-metadata">

**Author:** [@liulk3](https://forum.amebaiot.com/u/liulk3)\
**Replies:** 1\
**Last updated:** [October 28, 2024, 6:28am UTC](https://forum.amebaiot.com/t/ble/3448 "2024-10-28T06:28:57Z")

</div>

你好我想透過BLE建立低功耗應用，目前先使用官方範例的BLEBatteryService.ino範例，但是目前量測到的電量消耗是約60mA/40mAh，感覺還是有點高了，有沒有機會進一步更加降低功耗? 我在其他討論區的看到BLE和WIFI的元件似乎是同一個，那這樣還有其他可能進一步降低的可能嗎?例如讓程式運作在20MHz的核心上?

---

## [AW-CU488 Scan Error, Invalid State](https://forum.amebaiot.com/t/aw-cu488-scan-error-invalid-state/3420)

<div class="topic-metadata">

**Author:** [@lily](https://forum.amebaiot.com/u/lily)\
**Replies:** 1\
**Last updated:** [October 21, 2024, 2:49am UTC](https://forum.amebaiot.com/t/aw-cu488-scan-error-invalid-state/3420 "2024-10-21T02:49:39Z")

</div>

Hi there, I’m working on a program which requires continual scanning. However, when I loop scanning, I keep getting a scan error. Upon further digging, this scan error appears to be due to an invalid scan state. Unfortun…

---

## [BLE斷線後重新自動連線 BLE automatically reconnects after disconnection](https://forum.amebaiot.com/t/ble-ble-automatically-reconnects-after-disconnection/3360)

<div class="topic-metadata">

**Author:** [@thLU](https://forum.amebaiot.com/u/thLU)\
**Replies:** 2\
**Last updated:** [October 15, 2024, 11:01am UTC](https://forum.amebaiot.com/t/ble-ble-automatically-reconnects-after-disconnection/3360 "2024-10-15T11:01:56Z")

</div>

這裡想請問AMB82 mini是否能實現Client端在藍牙連線斷線後，自動重新掃描並連線的功能呢？ I would like to ask if the AMB82 mini can realize the function of the client automatically rescanning and reconnecting after the Bluetooth connection is disconnected?

---

## [Change MTU BLE Server](https://forum.amebaiot.com/t/change-mtu-ble-server/3376)

<div class="topic-metadata">

**Author:** [@Ivan](https://forum.amebaiot.com/u/Ivan)\
**Replies:** 2\
**Last updated:** [October 2, 2024, 5:50am UTC](https://forum.amebaiot.com/t/change-mtu-ble-server/3376 "2024-10-02T05:50:31Z")

</div>

Hi, how can i change the MTU in a BLE server application? How can i read the actual value of the MTU? Thanks

---

## [Update Wifi SSID/Password via Bluetooth - AMB82 Mini](https://forum.amebaiot.com/t/update-wifi-ssid-password-via-bluetooth-amb82-mini/3232)

<div class="topic-metadata">

**Author:** [@roq](https://forum.amebaiot.com/u/roq)\
**Replies:** 4\
**Last updated:** [September 12, 2024, 5:38pm UTC](https://forum.amebaiot.com/t/update-wifi-ssid-password-via-bluetooth-amb82-mini/3232 "2024-09-12T17:38:53Z")

</div>

Hello all, How to update the Wifi SSID/Password using Bluetooth on AMB82 Mini ? I don’t want to use the Realtek app but my own. Please guide, Thanks

---

## [Enable Bluetooth for Wifi Configuration](https://forum.amebaiot.com/t/enable-bluetooth-for-wifi-configuration/3248)

<div class="topic-metadata">

**Author:** [@roq](https://forum.amebaiot.com/u/roq)\
**Replies:** 1\
**Last updated:** [September 2, 2024, 6:21am UTC](https://forum.amebaiot.com/t/enable-bluetooth-for-wifi-configuration/3248 "2024-09-02T06:21:29Z")

</div>

Hi @Kelvin\_Huang @KevinKL @pammyleong , I went through this example, BLE – WiFi Configuration Service – Realtek IoT/Wi-Fi MCU Solutions , to try to set the Wifi SSID/password using bluetooth on my AMB82. However, my ph…

---

## [如何取得AMB82-mini BLE Client 的 RSSI值?](https://forum.amebaiot.com/t/amb82-mini-ble-client-rssi/3078)

<div class="topic-metadata">

**Author:** [@OUO](https://forum.amebaiot.com/u/OUO)\
**Replies:** 0\
**Last updated:** [July 2, 2024, 2:43pm UTC](https://forum.amebaiot.com/t/amb82-mini-ble-client-rssi/3078 "2024-07-02T14:43:34Z")

</div>

BLE Service 是使用esp32，可以成功連接上，Characteristic也都能成功修改，但是在loop裡面寫的Serial.println(targetDevice.getRSSI());，只會印出連線當下的值，不會隨著板子之間距離遠近而更新，想請問該如何做修改？下方程式碼是修改自example BLEUartClient。 /\* Example guide: https://www.amebaiot.com/en…

---

## [使用BLE接收帶有藍芽裝置的數據](https://forum.amebaiot.com/t/ble/2828)

<div class="topic-metadata">

**Author:** [@Smallston12345](https://forum.amebaiot.com/u/Smallston12345)\
**Replies:** 1\
**Last updated:** [April 8, 2024, 3:01am UTC](https://forum.amebaiot.com/t/ble/2828 "2024-04-08T03:01:47Z")

</div>

如題，請問有這種範例程式嗎? 使用RTL8720的BLE去搜尋該藍芽裝置UUID並接收資料傳至序列窗口

---

## [BLE client can't connect multi BLE server device](https://forum.amebaiot.com/t/ble-client-cant-connect-multi-ble-server-device/2557)

<div class="topic-metadata">

**Author:** [@yithwe](https://forum.amebaiot.com/u/yithwe)\
**Replies:** 2\
**Last updated:** [January 30, 2024, 2:00am UTC](https://forum.amebaiot.com/t/ble-client-cant-connect-multi-ble-server-device/2557 "2024-01-30T02:00:46Z")

</div>

Hi Supporter I use Ameba26 board, BLE setting as Central type and try to connect to other BLE Peripheral device, it’s only one connection success if setting (BLE.beginCentral(1)), I try to set BLE Cnetral argument(BLE.…

---

## [BLE service connect to client](https://forum.amebaiot.com/t/ble-service-connect-to-client/2202)

<div class="topic-metadata">

**Author:** [@yithwe](https://forum.amebaiot.com/u/yithwe)\
**Replies:** 3\
**Last updated:** [August 31, 2023, 9:40am UTC](https://forum.amebaiot.com/t/ble-service-connect-to-client/2202 "2023-08-31T09:40:00Z")

</div>

Hi As title, I need for BLE host(service) connect to client, get the info from client, all in arduino example and source code is client connect to service. do you have any source code(.cpp) for BLE service connect to cl…

---

## [如何讓 AMB23 的 BLE範例 自動重新Scan裝置](https://forum.amebaiot.com/t/amb23-ble-scan/2172)

<div class="topic-metadata">

**Author:** [@thLU](https://forum.amebaiot.com/u/thLU)\
**Replies:** 3\
**Last updated:** [August 25, 2023, 8:43am UTC](https://forum.amebaiot.com/t/amb23-ble-scan/2172 "2023-08-25T08:43:33Z")

</div>

請問在 BLEUartServer 和 BLEUartClient 的範例程式碼中，只有一次互相連線的內容，即只會scan一次，找到符合條件之裝置並連線後，如果裝置間斷掉連線，裝置互相就不會再進行第二次或更多次的自動scan。 請問是否有辦法讓裝置在斷線後，自動重新搜尋裝置以連線呢？謝謝。

---

## [Connect and customize to Wi-Fi with BLE](https://forum.amebaiot.com/t/connect-and-customize-to-wi-fi-with-ble/2070)

<div class="topic-metadata">

**Author:** [@akycdi](https://forum.amebaiot.com/u/akycdi)\
**Replies:** 1\
**Last updated:** [July 26, 2023, 8:10am UTC](https://forum.amebaiot.com/t/connect-and-customize-to-wi-fi-with-ble/2070 "2023-07-26T08:10:41Z")

</div>

Hi, My use case: I must use Wi-Fi in the 5G spectrum to transmit data from my Pico to my client’s device. I must now set my own UUID and Name for my Ameba. In order to connect to the WiFi network that my client’s device…

---

## [關於RTL8722 ,當廠商藍芽有相同UUID,不同MAC,如何讀取設備的數值?](https://forum.amebaiot.com/t/rtl8722-uuid-mac/1909)

<div class="topic-metadata">

**Author:** [@tom.chen2017](https://forum.amebaiot.com/u/tom.chen2017)\
**Replies:** 3\
**Last updated:** [June 6, 2023, 1:57am UTC](https://forum.amebaiot.com/t/rtl8722-uuid-mac/1909 "2023-06-06T01:57:13Z")

</div>

廠商的藍芽設備都是相同UUID,但有各自MAC和foundDevice.getName(),如何隨時監控設備是否開啟,以及透過MAC或各自的Name讀取數值! 是否有範例程式可以測試!!

---

## [BW16 BLE CLIENT與ESP32 BLE Server](https://forum.amebaiot.com/t/bw16-ble-client-esp32-ble-server/1656)

<div class="topic-metadata">

**Author:** [@tom.chen2017](https://forum.amebaiot.com/u/tom.chen2017)\
**Replies:** 12\
**Last updated:** [February 22, 2023, 9:41am UTC](https://forum.amebaiot.com/t/bw16-ble-client-esp32-ble-server/1656 "2023-02-22T09:41:36Z")

</div>

請問bw16的battery ble client程式修改之後,能夠和esp32的ble server溝通嗎? 我發現bw16和esp32 ble的client程是寫法有許多不同之處? 有辦法讓兩者互連嗎?

---

## [AMB21 BLE temperature project](https://forum.amebaiot.com/t/amb21-ble-temperature-project/1627)

<div class="topic-metadata">

**Author:** [@Chrysa\_Tsimperi](https://forum.amebaiot.com/u/Chrysa_Tsimperi)\
**Replies:** 1\
**Last updated:** [December 29, 2022, 3:38am UTC](https://forum.amebaiot.com/t/amb21-ble-temperature-project/1627 "2022-12-29T03:38:06Z")

</div>

Hi, I’m an early user and I would like to use AMB21 to calculate temperature from DHT11 and from a ntc3950 thermistor. I found this BLE – DHT over BLE UART – Realtek IoT/Wi-Fi MCU Solutions and I want to add this thermi…

---

## [BLEWifiConfig issue](https://forum.amebaiot.com/t/blewificonfig-issue/1593)

<div class="topic-metadata">

**Author:** [@kal](https://forum.amebaiot.com/u/kal)\
**Replies:** 1\
**Last updated:** [December 12, 2022, 7:14am UTC](https://forum.amebaiot.com/t/blewificonfig-issue/1593 "2022-12-12T07:14:39Z")

</div>

hello ，im using Bluetooth wifi config code void setup() { Serial.begin(115200); BLE.init(); BLE.configServer(1); configService.addService(); configService.begin(); // Wifi config service requir…

---

## [arduino开发RTL8720蓝牙配网断电自动重连](https://forum.amebaiot.com/t/arduino-rtl8720/1594)

<div class="topic-metadata">

**Author:** [@kal](https://forum.amebaiot.com/u/kal)\
**Replies:** 1\
**Last updated:** [December 12, 2022, 7:14am UTC](https://forum.amebaiot.com/t/arduino-rtl8720/1594 "2022-12-12T07:14:37Z")

</div>

蓝牙配网是不支持断电重连吗，还是我设置错误了，那这个配网只能一次性的？没搞懂，哪个大神看看，应该说配网信息应该是保存到flash，上电以后自动重连才是。 BLE.init(); BLE.configServer(1); configService.addService(); configService.begin(); // Wifi config service requires a specific adve…

---

## [RTL8722DM Mini BLE using min and max](https://forum.amebaiot.com/t/rtl8722dm-mini-ble-using-min-and-max/1580)

<div class="topic-metadata">

**Author:** [@portblock](https://forum.amebaiot.com/u/portblock)\
**Replies:** 1\
**Last updated:** [December 8, 2022, 3:32am UTC](https://forum.amebaiot.com/t/rtl8722dm-mini-ble-using-min-and-max/1580 "2022-12-08T03:32:50Z")

</div>

Hello, im using this board connected with max30102 sensor to send data via ble. Im struggling with it because the example works for creating ble but min and max value doesn’t change. This is the code example for ibeaco…

---

## [BLEscan example](https://forum.amebaiot.com/t/blescan-example/1464)

<div class="topic-metadata">

**Author:** [@luke](https://forum.amebaiot.com/u/luke)\
**Replies:** 2\
**Last updated:** [October 10, 2022, 2:14am UTC](https://forum.amebaiot.com/t/blescan-example/1464 "2022-10-10T02:14:51Z")

</div>

Hi, I was wondering if anyone knew the maximum number of BLE signals can be scanned? I have modified the BLEscan example code to send scan data over I2C to a Raspberry Pi. This requires me to know the largest size buffe…

---

## [Rtl8720dn藍芽可以同時連接幾個設備](https://forum.amebaiot.com/t/rtl8720dn/1445)

<div class="topic-metadata">

**Author:** [@tom.chen2017](https://forum.amebaiot.com/u/tom.chen2017)\
**Replies:** 7\
**Last updated:** [September 30, 2022, 8:27am UTC](https://forum.amebaiot.com/t/rtl8720dn/1445 "2022-09-30T08:27:34Z")

</div>

請問rtl8720dn最多可以同時連接幾個藍芽設備? 另外有可以設定lesc的暫存器嗎?

[Next page](https://forum.amebaiot.com/c/arduino/bt/127.md?page=1)
