summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sensor/thermostat.ino4
1 files changed, 4 insertions, 0 deletions
diff --git a/sensor/thermostat.ino b/sensor/thermostat.ino
index 2b7236c..7eb6683 100644
--- a/sensor/thermostat.ino
+++ b/sensor/thermostat.ino
@@ -2,6 +2,7 @@
#include <Wire.h>
#include "SSD1306.h"
#include "DHTesp.h"
+#include <esp_bt.h>
#include "BLEDevice.h"
#include "Ticker.h"
@@ -123,6 +124,9 @@ void setup() {
display.init();
display.connect();
BLEDevice::init("");
+ esp_ble_tx_power_set(ESP_BLE_PWR_TYPE_ADV, ESP_PWR_LVL_P7);
+ esp_ble_tx_power_set(ESP_BLE_PWR_TYPE_SCAN, ESP_PWR_LVL_P7);
+ esp_ble_tx_power_set(ESP_BLE_PWR_TYPE_DEFAULT, ESP_PWR_LVL_P7);
}
void watchdog_cb() {