|
|
@ -22,7 +22,8 @@ type DeviceStatus struct {
|
|
|
|
func (c *Coordinator) DevStatus(ch chan *DeviceStatus, a int, dm DeviceManager) {
|
|
|
|
func (c *Coordinator) DevStatus(ch chan *DeviceStatus, a int, dm DeviceManager) {
|
|
|
|
d := &DeviceStatus{Addr: a}
|
|
|
|
d := &DeviceStatus{Addr: a}
|
|
|
|
d.Type = dm.GetType()
|
|
|
|
d.Type = dm.GetType()
|
|
|
|
d.Status = dm.GetStatus()
|
|
|
|
//d.Status = dm.GetStatus()
|
|
|
|
|
|
|
|
d.Status = 0
|
|
|
|
d.Data = dm.GetData()
|
|
|
|
d.Data = dm.GetData()
|
|
|
|
ch <- d
|
|
|
|
ch <- d
|
|
|
|
}
|
|
|
|
}
|
|
|
|