1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-05-14 19:29:32 +08:00
hybridgroup.gobot/platforms/pebble/pebble_adaptor.go
deadprogram 36092d2908 core: Refactor Pebble platform for new Adaptor/Driver creation signatures
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-01 18:01:30 +02:00

26 lines
537 B
Go

package pebble
type Adaptor struct {
name string
}
// NewAdaptor creates a new pebble adaptor
func NewAdaptor() *Adaptor {
return &Adaptor{
name: "Pebble",
}
}
func (a *Adaptor) Name() string { return a.name }
func (a *Adaptor) SetName(n string) { a.name = n }
// Connect returns true if connection to pebble is established successfully
func (a *Adaptor) Connect() (errs []error) {
return
}
// Finalize returns true if connection to pebble is finalized successfully
func (a *Adaptor) Finalize() (errs []error) {
return
}