diff options
author | dakkar <dakkar@thenautilus.net> | 2018-04-20 14:52:23 +0100 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2018-04-20 14:52:23 +0100 |
commit | ca5552d5162c2954f2a3da3bbba35a5e3ee9e435 (patch) | |
tree | 430579dbfe137de9d6f508ae94a10f8f9238bac9 /sensor | |
parent | handle exceptions from BLE (diff) | |
download | thermostat-ca5552d5162c2954f2a3da3bbba35a5e3ee9e435.tar.gz thermostat-ca5552d5162c2954f2a3da3bbba35a5e3ee9e435.tar.bz2 thermostat-ca5552d5162c2954f2a3da3bbba35a5e3ee9e435.zip |
use standard BLE library
I had added the error return, but it's useless
Diffstat (limited to 'sensor')
-rw-r--r-- | sensor/thermostat.ino | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sensor/thermostat.ino b/sensor/thermostat.ino index e6090ac..d90404b 100644 --- a/sensor/thermostat.ino +++ b/sensor/thermostat.ino @@ -71,12 +71,9 @@ bool read_sensor(float* humidity, float* temperature) { uint32_t send_data_and_get_time(BLEAddress* pAddress,String* data) { BLEClient* pClient = BLEDevice::createClient(); show("Sc"); - esp_err_t err; - bool ok = pClient->connect(*pAddress,&err); + bool ok = pClient->connect(*pAddress); if (!ok) { - String status=""; - status += GeneralUtils::errorToString(err); - show(status); + show("connect fail"); return 10; } String status = "SC"; |