From ca5552d5162c2954f2a3da3bbba35a5e3ee9e435 Mon Sep 17 00:00:00 2001 From: dakkar Date: Fri, 20 Apr 2018 14:52:23 +0100 Subject: use standard BLE library I had added the error return, but it's useless --- sensor/thermostat.ino | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'sensor/thermostat.ino') 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"; -- cgit v1.2.3