[已解决] ESP32 BLE透传如何主动发送数据

carsonche
Posts: 10
Joined: Tue May 25, 2021 2:21 pm

[已解决] ESP32 BLE透传如何主动发送数据

Postby carsonche » Tue May 25, 2021 2:42 pm

我在做ESP32 BLE透传,通过串口透传数据。看到的例程都是手机app端读操作时触发ESP_GATTS_READ_EVT事件,然后发送数据。我想问如何主动发送数据,当连接后,串口有数据来是如何主动地将数据转发给到手机app端。有无例程参考

carsonche
Posts: 10
Joined: Tue May 25, 2021 2:21 pm

Re: ESP32 BLE透传如何主动发送数据

Postby carsonche » Wed May 26, 2021 6:51 pm

问题以解决,本人使用esp_ble_gatts_send_indicate函数可以上报数据。

Who is online

Users browsing this forum: No registered users and 85 guests