major change of websocket dbmHandler structure
This commit is contained in:
16
drivers/artNet.go
Normal file
16
drivers/artNet.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package drivers
|
||||
|
||||
type ArtNetDriver struct {
|
||||
Bus string
|
||||
Addresses []uint
|
||||
}
|
||||
|
||||
func NewArtNetDriver(bus string) *ArtNetDriver {
|
||||
return &ArtNetDriver{
|
||||
Bus: bus,
|
||||
}
|
||||
}
|
||||
|
||||
func (a *ArtNetDriver) AddAddress(adr uint) {
|
||||
a.Addresses = append(a.Addresses, adr)
|
||||
}
|
Reference in New Issue
Block a user