本帖最后由 Nchyn 于 2022-11-22 22:49 编辑
马家贪便宜买了两块C3想跑蓝牙代理,借鉴了坛内数位大佬的脚本都有些奇奇怪怪的问题,包括不限于使用arduino:
wifi打死连不上,反复验证失败
使用idf:
需要手动启用蓝牙模块
不能开usb-jtag日志,开了一样反复无法连接wifi
现将成功刷入使用的脚本分享给大家,还请各位大佬指点
substitutions:
device: esp-32c3-lite-1
device_name: esp-32c3-lite-blegateway-1
esphome:
name: $device_name
comment: $device
platformio_options:
board_build.flash_mode: dio
esp32:
board: esp32-c3-devkitm-1
variant: esp32c3
framework:
type: esp-idf
sdkconfig_options:
CONFIG_BT_BLE_50_FEATURES_SUPPORTED: y
CONFIG_BT_BLE_42_FEATURES_SUPPORTED: y
api:
ota:
wifi:
ssid: ""
password: ""
bluetooth_proxy:
active: true
esp32_ble_tracker:
sensor:
- platform: ble_rssi
id: amazfit_rssi_1
mac_address:
name: "Amazfit RSSi"
binary_sensor:
- platform: ble_presence
id: amazfit_binary_1
mac_address:
name: "Amazfit"
# Enable logging
logger:
level: DEBUG
|