removed errant file

main
KeeganForelight 2 years ago
parent 710910def0
commit d03a24bac8

@ -1,48 +0,0 @@
package sensor
// do sensor and methods
import (
pb "FRMS/internal/pkg/grpc"
"sync"
)
type DOManager struct {
// do sensor manager
*Atlas // atlas helper
*SensorManager `mapstructure:",squash"`
sync.RWMutex
Status int
Name string
}
func NewDOManager(device *pb.Device) *DOManager {
a := NewAtlasManager()
sm := NewSensorManager(device*pb.Device, a.Read)
m := &DOManager{
SensorManager: sm,
Atlas: a,
}
return m
}
func (m *DOManager) Start() error {
// start sm
if err := m.SensorManager.Start(); err != nil {
return err
}
// start taking samples
go m.Monitor(m.Address, m.Atlas.Read)
return nil
}
func (m *DOManager) GetDefaultName() string {
return "DO Sensor"
}
func (m *DOManager) String() string {
// TODO
return ""
}
Loading…
Cancel
Save