diff options
author | dakkar <dakkar@thenautilus.net> | 2018-04-03 20:56:17 +0100 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2018-04-03 20:56:17 +0100 |
commit | 06520e84c44be9f4f13fc10b0ed8ba93d5ce246d (patch) | |
tree | d07c7b538a411fb8061ffe0d5bdbf72a9f7e4daf /sensor | |
parent | show more progress info (diff) | |
download | thermostat-06520e84c44be9f4f13fc10b0ed8ba93d5ce246d.tar.gz thermostat-06520e84c44be9f4f13fc10b0ed8ba93d5ce246d.tar.bz2 thermostat-06520e84c44be9f4f13fc10b0ed8ba93d5ce246d.zip |
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
Diffstat (limited to 'sensor')
-rw-r--r-- | sensor/thermostat.ino | 5 |
1 files changed, 5 insertions, 0 deletions
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) { |