summaryrefslogtreecommitdiff
path: root/sensor/thermostat.ino
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2018-04-20 15:36:02 +0100
committerdakkar <dakkar@thenautilus.net>2018-04-20 15:36:02 +0100
commit858a115a0fb5bdb4d3789acb5b5b716ed857c5b4 (patch)
treebc7beccc15c5e22ce917759dc359acc30d0ec5e5 /sensor/thermostat.ino
parentadd a watchdog (diff)
downloadthermostat-858a115a0fb5bdb4d3789acb5b5b716ed857c5b4.tar.gz
thermostat-858a115a0fb5bdb4d3789acb5b5b716ed857c5b4.tar.bz2
thermostat-858a115a0fb5bdb4d3789acb5b5b716ed857c5b4.zip
more power, more reliability
Diffstat (limited to 'sensor/thermostat.ino')
-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() {