PKGBUILD/pkg/sensor/dht22.go

22 lines
413 B
Go
Raw Normal View History

2019-02-22 12:08:58 +00:00
package sensor
import (
"log"
2019-02-24 21:46:36 +00:00
"git.cryptic.systems/fh-trier/go-flucky/pkg/types"
2019-02-22 12:08:58 +00:00
)
type DHT22Sensor struct {
*types.Sensor
}
2019-02-24 21:46:36 +00:00
func (s *DHT22Sensor) ReadHumidity() (*types.Humidity, error) {
log.Println("DHT11 Read Method not yet implemented")
return nil, nil
}
func (s *DHT22Sensor) ReadTemperature() (*types.Temperature, error) {
2019-02-22 12:08:58 +00:00
log.Println("DHT22 Read Method not yet implemented")
return nil, nil
}