2014-05-03 06:22:05 +08:00
|
|
|
package pebble
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/hybridgroup/gobot"
|
|
|
|
)
|
|
|
|
|
|
|
|
type PebbleAdaptor struct {
|
|
|
|
gobot.Adaptor
|
|
|
|
}
|
|
|
|
|
2014-05-24 06:09:18 +08:00
|
|
|
func NewPebbleAdaptor(name string) *PebbleAdaptor {
|
|
|
|
return &PebbleAdaptor{
|
|
|
|
Adaptor: gobot.Adaptor{
|
|
|
|
Name: name,
|
|
|
|
},
|
|
|
|
}
|
2014-05-03 06:22:05 +08:00
|
|
|
}
|
|
|
|
|
2014-05-24 06:09:18 +08:00
|
|
|
func (a *PebbleAdaptor) Connect() bool {
|
|
|
|
return true
|
2014-05-03 06:22:05 +08:00
|
|
|
}
|
|
|
|
|
2014-05-24 06:09:18 +08:00
|
|
|
func (a *PebbleAdaptor) Reconnect() bool {
|
|
|
|
return true
|
2014-05-03 06:22:05 +08:00
|
|
|
}
|
|
|
|
|
2014-05-24 06:09:18 +08:00
|
|
|
func (a *PebbleAdaptor) Disconnect() bool {
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
|
|
|
|
func (a *PebbleAdaptor) Finalize() bool {
|
|
|
|
return true
|
2014-05-03 06:22:05 +08:00
|
|
|
}
|