From 06520e84c44be9f4f13fc10b0ed8ba93d5ce246d Mon Sep 17 00:00:00 2001 From: dakkar Date: Tue, 3 Apr 2018 20:56:17 +0100 Subject: fake DHT11 reading it may be a problem with my soldering, but the sensor can't be read, so I'll fake it for now while I test the BLE part --- sensor/thermostat.ino | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sensor/thermostat.ino') diff --git a/sensor/thermostat.ino b/sensor/thermostat.ino index 52eb4b0..e9db767 100644 --- a/sensor/thermostat.ino +++ b/sensor/thermostat.ino @@ -46,6 +46,11 @@ class MyAdvertisedDeviceCallbacks: public BLEAdvertisedDeviceCallbacks { }; // MyAdvertisedDeviceCallbacks void read_sensor(float* humidity, float* temperature) { + // faking it temporarily, my sensor is not cooperating + *temperature = 25.0; + *humidity = 87.0; + return; + dht.setup(13,DHTesp::DHT11); while (1) { -- cgit v1.2.3