Defaults to BLE protocol version 1
I'll keep it at v1 until at least the ESPHome and Home Assistant bridges versions are released with support to v2.
This commit is contained in:
parent
b4acd3fad7
commit
0d307d8ef5
2 changed files with 4 additions and 16 deletions
|
|
@ -3,21 +3,11 @@ esphome:
|
|||
platform: ESP32
|
||||
board: lolin32
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
power_save_mode: none
|
||||
|
||||
mqtt:
|
||||
broker: !secret mqtt_broker
|
||||
username: !secret mqtt_user
|
||||
password: !secret mqtt_password
|
||||
|
||||
esp32_ble_tracker:
|
||||
|
||||
sensor:
|
||||
- platform: b_parasite
|
||||
mac_address: "f0:ca:f0:ca:00:01"
|
||||
mac_address: "f0:ca:f0:ca:01:01"
|
||||
humidity:
|
||||
name: "bprst1 humidity"
|
||||
temperature:
|
||||
|
|
@ -28,7 +18,3 @@ sensor:
|
|||
name: "bprst1 battery_voltage"
|
||||
|
||||
logger:
|
||||
# level: VERY_VERBOSE
|
||||
|
||||
ota:
|
||||
password: !secret ota_password
|
||||
|
|
|
|||
|
|
@ -28,7 +28,9 @@
|
|||
// BLE.
|
||||
// Prints out BLE debug info, such as the final encoded advertisement packet.
|
||||
#define PRST_BLE_DEBUG 0
|
||||
#define PRST_BLE_PROTOCOL_VERSION 2
|
||||
// The BLE protocol version defines how the sensors' data is encoded inside the
|
||||
// BLE advertisement packet.
|
||||
#define PRST_BLE_PROTOCOL_VERSION 1
|
||||
|
||||
// There are two options for configuring the MAC address of b-parasites:
|
||||
// 1. Comment out the PRST_BLE_MAC_ADDR to use a random static MAC address that
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue