diff options
author | dakkar <dakkar@thenautilus.net> | 2018-04-20 15:36:02 +0100 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2018-04-20 15:36:02 +0100 |
commit | 858a115a0fb5bdb4d3789acb5b5b716ed857c5b4 (patch) | |
tree | bc7beccc15c5e22ce917759dc359acc30d0ec5e5 /sensor | |
parent | add a watchdog (diff) | |
download | thermostat-858a115a0fb5bdb4d3789acb5b5b716ed857c5b4.tar.gz thermostat-858a115a0fb5bdb4d3789acb5b5b716ed857c5b4.tar.bz2 thermostat-858a115a0fb5bdb4d3789acb5b5b716ed857c5b4.zip |
more power, more reliability
Diffstat (limited to 'sensor')
-rw-r--r-- | sensor/thermostat.ino | 4 |
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() { |