【问题标题】:How to use Bluetooth with ESP32 & NodeMCU in Lua如何在 Lua 中通过 ESP32 和 NodeMCU 使用蓝牙
【发布时间】:2021-04-05 23:32:15
【问题描述】:

如何使用 Lua 语言的 bthci 蓝牙模块?

我使用 NodeMCU Builder 制作固件(dev-esp32),但没有蓝牙复选框。 可以使用蓝牙吗?

【问题讨论】:

    标签: lua bluetooth bluetooth-lowenergy esp32 nodemcu


    【解决方案1】:

    目前(即在 BT 支持可用于云构建之前)如果您需要 BT 支持,您需要自己构建固件。我建议您根据我们在https://nodemcu.readthedocs.io/en/dev-esp32/build/#docker-image 的文档,从专门为此构建的the Docker image 开始。

    真正的挑战是了解您需要在 ESP-IDF 中打开哪些 BT 选项 - 这些选项是特定于您的用例的。 https://github.com/espressif/esp-idf/tree/master/examples/bluetooth 包含许多示例,每个示例在其 sdkconfig.defaults 文件中都有所需标志的列表,例如https://github.com/espressif/esp-idf/blob/master/examples/bluetooth/hci/controller_hci_uart/sdkconfig.defaults

    可以使用蓝牙吗?

    是的,是的。配置比其他模块更复杂,因为它用途广泛。

    【讨论】:

      猜你喜欢
      • 2020-12-27
      • 2021-08-16
      • 2022-10-14
      • 1970-01-01
      • 2023-02-23
      • 2022-12-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多