19#ifndef SRC_SUPLA_SENSOR_SI7021_SONOFF_H_
20#define SRC_SUPLA_SENSOR_SI7021_SONOFF_H_
23#include <supla/sensor/therm_hygro_meter.h>
27class Si7021Sonoff :
public ThermHygroMeter {
29 explicit Si7021Sonoff(
int pin);
36 double readTemp(uint8_t* data);
37 double readHumi(uint8_t* data);
39 bool waitState(
bool state);
void iterateAlways() override
Method called on each SuplaDevice iteration.
Definition therm_hygro_meter.cpp:82
void onInit() override
Third method called on element in SuplaDevice.begin().
Definition therm_hygro_meter.cpp:34