summaryrefslogtreecommitdiff
path: root/sensor/thermostat.ino
diff options
context:
space:
mode:
Diffstat (limited to 'sensor/thermostat.ino')
-rw-r--r--sensor/thermostat.ino7
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";