1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-04-27 13:48:56 +08:00
hybridgroup.gobot/platforms/pebble/pebble_adaptor.go
deadprogram 7189809f17 core: update Pebble platform to simply return error
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-11-07 21:29:52 +01:00

26 lines
531 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() (err error) {
return
}
// Finalize returns true if connection to pebble is finalized successfully
func (a *Adaptor) Finalize() (err error) {
return
}