From 0d307d8ef5735dad301b650c2b346b2257158470 Mon Sep 17 00:00:00 2001 From: rbaron Date: Tue, 15 Mar 2022 08:52:37 +0100 Subject: [PATCH] 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. --- bridge/parahub.yaml | 16 +--------------- code/b-parasite/config/prst_config.h | 4 +++- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/bridge/parahub.yaml b/bridge/parahub.yaml index cbf24fb..068e62e 100644 --- a/bridge/parahub.yaml +++ b/bridge/parahub.yaml @@ -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 diff --git a/code/b-parasite/config/prst_config.h b/code/b-parasite/config/prst_config.h index 15ba7a7..2aa2393 100644 --- a/code/b-parasite/config/prst_config.h +++ b/code/b-parasite/config/prst_config.h @@ -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