mirror of
https://github.com/hybridgroup/gobot.git
synced 2025-04-26 13:48:49 +08:00
ble: correct spelling error in function name everywhere they occur
Signed-off-by: Ron Evans <ron@hybridgroup.com>
This commit is contained in:
parent
5c74cab289
commit
f1e15f1e32
@ -9,24 +9,24 @@ import (
|
||||
var _ ble.BLEConnector = (*bleTestClientAdaptor)(nil)
|
||||
|
||||
type bleTestClientAdaptor struct {
|
||||
name string
|
||||
address string
|
||||
mtx sync.Mutex
|
||||
withoutReponses bool
|
||||
name string
|
||||
address string
|
||||
mtx sync.Mutex
|
||||
withoutResponses bool
|
||||
|
||||
testSubscribe func([]byte, error)
|
||||
testReadCharacteristic func(string) ([]byte, error)
|
||||
testWriteCharacteristic func(string, []byte) error
|
||||
}
|
||||
|
||||
func (t *bleTestClientAdaptor) Connect() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Reconnect() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Disconnect() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Finalize() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Name() string { return t.name }
|
||||
func (t *bleTestClientAdaptor) SetName(n string) { t.name = n }
|
||||
func (t *bleTestClientAdaptor) Address() string { return t.address }
|
||||
func (t *bleTestClientAdaptor) WithoutReponses(use bool) { t.withoutReponses = use }
|
||||
func (t *bleTestClientAdaptor) Connect() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Reconnect() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Disconnect() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Finalize() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Name() string { return t.name }
|
||||
func (t *bleTestClientAdaptor) SetName(n string) { t.name = n }
|
||||
func (t *bleTestClientAdaptor) Address() string { return t.address }
|
||||
func (t *bleTestClientAdaptor) WithoutResponses(use bool) { t.withoutResponses = use }
|
||||
|
||||
func (t *bleTestClientAdaptor) ReadCharacteristic(cUUID string) (data []byte, err error) {
|
||||
t.mtx.Lock()
|
||||
|
@ -12,19 +12,19 @@ type bleTestClientAdaptor struct {
|
||||
name string
|
||||
address string
|
||||
mtx sync.Mutex
|
||||
withoutReponses bool
|
||||
withoutResponses bool
|
||||
testReadCharacteristic func(string) ([]byte, error)
|
||||
testWriteCharacteristic func(string, []byte) error
|
||||
}
|
||||
|
||||
func (t *bleTestClientAdaptor) Connect() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Reconnect() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Disconnect() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Finalize() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Name() string { return t.name }
|
||||
func (t *bleTestClientAdaptor) SetName(n string) { t.name = n }
|
||||
func (t *bleTestClientAdaptor) Address() string { return t.address }
|
||||
func (t *bleTestClientAdaptor) WithoutReponses(use bool) { t.withoutReponses = use }
|
||||
func (t *bleTestClientAdaptor) Connect() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Reconnect() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Disconnect() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Finalize() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Name() string { return t.name }
|
||||
func (t *bleTestClientAdaptor) SetName(n string) { t.name = n }
|
||||
func (t *bleTestClientAdaptor) Address() string { return t.address }
|
||||
func (t *bleTestClientAdaptor) WithoutResponses(use bool) { t.withoutResponses = use }
|
||||
|
||||
func (t *bleTestClientAdaptor) ReadCharacteristic(cUUID string) (data []byte, err error) {
|
||||
t.mtx.Lock()
|
||||
|
@ -152,7 +152,7 @@ func (b *Driver) adaptor() ble.BLEConnector {
|
||||
|
||||
// Start tells driver to get ready to do work
|
||||
func (b *Driver) Start() (err error) {
|
||||
b.adaptor().WithoutReponses(true)
|
||||
b.adaptor().WithoutResponses(true)
|
||||
b.Init()
|
||||
b.FlatTrim()
|
||||
b.StartPcmd()
|
||||
|
@ -9,23 +9,23 @@ import (
|
||||
var _ ble.BLEConnector = (*bleTestClientAdaptor)(nil)
|
||||
|
||||
type bleTestClientAdaptor struct {
|
||||
name string
|
||||
address string
|
||||
mtx sync.Mutex
|
||||
withoutReponses bool
|
||||
name string
|
||||
address string
|
||||
mtx sync.Mutex
|
||||
withoutResponses bool
|
||||
|
||||
testReadCharacteristic func(string) ([]byte, error)
|
||||
testWriteCharacteristic func(string, []byte) error
|
||||
}
|
||||
|
||||
func (t *bleTestClientAdaptor) Connect() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Reconnect() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Disconnect() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Finalize() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Name() string { return t.name }
|
||||
func (t *bleTestClientAdaptor) SetName(n string) { t.name = n }
|
||||
func (t *bleTestClientAdaptor) Address() string { return t.address }
|
||||
func (t *bleTestClientAdaptor) WithoutReponses(use bool) { t.withoutReponses = use }
|
||||
func (t *bleTestClientAdaptor) Connect() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Reconnect() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Disconnect() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Finalize() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Name() string { return t.name }
|
||||
func (t *bleTestClientAdaptor) SetName(n string) { t.name = n }
|
||||
func (t *bleTestClientAdaptor) Address() string { return t.address }
|
||||
func (t *bleTestClientAdaptor) WithoutResponses(use bool) { t.withoutResponses = use }
|
||||
|
||||
func (t *bleTestClientAdaptor) ReadCharacteristic(cUUID string) (data []byte, err error) {
|
||||
t.mtx.Lock()
|
||||
|
@ -9,23 +9,23 @@ import (
|
||||
var _ ble.BLEConnector = (*bleTestClientAdaptor)(nil)
|
||||
|
||||
type bleTestClientAdaptor struct {
|
||||
name string
|
||||
address string
|
||||
mtx sync.Mutex
|
||||
withoutReponses bool
|
||||
name string
|
||||
address string
|
||||
mtx sync.Mutex
|
||||
withoutResponses bool
|
||||
|
||||
testReadCharacteristic func(string) ([]byte, error)
|
||||
testWriteCharacteristic func(string, []byte) error
|
||||
}
|
||||
|
||||
func (t *bleTestClientAdaptor) Connect() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Reconnect() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Disconnect() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Finalize() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Name() string { return t.name }
|
||||
func (t *bleTestClientAdaptor) SetName(n string) { t.name = n }
|
||||
func (t *bleTestClientAdaptor) Address() string { return t.address }
|
||||
func (t *bleTestClientAdaptor) WithoutReponses(use bool) { t.withoutReponses = use }
|
||||
func (t *bleTestClientAdaptor) Connect() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Reconnect() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Disconnect() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Finalize() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Name() string { return t.name }
|
||||
func (t *bleTestClientAdaptor) SetName(n string) { t.name = n }
|
||||
func (t *bleTestClientAdaptor) Address() string { return t.address }
|
||||
func (t *bleTestClientAdaptor) WithoutResponses(use bool) { t.withoutResponses = use }
|
||||
|
||||
func (t *bleTestClientAdaptor) ReadCharacteristic(cUUID string) (data []byte, err error) {
|
||||
t.mtx.Lock()
|
||||
|
@ -9,23 +9,23 @@ import (
|
||||
var _ ble.BLEConnector = (*bleTestClientAdaptor)(nil)
|
||||
|
||||
type bleTestClientAdaptor struct {
|
||||
name string
|
||||
address string
|
||||
mtx sync.Mutex
|
||||
withoutReponses bool
|
||||
name string
|
||||
address string
|
||||
mtx sync.Mutex
|
||||
withoutResponses bool
|
||||
|
||||
testReadCharacteristic func(string) ([]byte, error)
|
||||
testWriteCharacteristic func(string, []byte) error
|
||||
}
|
||||
|
||||
func (t *bleTestClientAdaptor) Connect() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Reconnect() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Disconnect() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Finalize() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Name() string { return t.name }
|
||||
func (t *bleTestClientAdaptor) SetName(n string) { t.name = n }
|
||||
func (t *bleTestClientAdaptor) Address() string { return t.address }
|
||||
func (t *bleTestClientAdaptor) WithoutReponses(use bool) { t.withoutReponses = use }
|
||||
func (t *bleTestClientAdaptor) Connect() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Reconnect() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Disconnect() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Finalize() (err error) { return }
|
||||
func (t *bleTestClientAdaptor) Name() string { return t.name }
|
||||
func (t *bleTestClientAdaptor) SetName(n string) { t.name = n }
|
||||
func (t *bleTestClientAdaptor) Address() string { return t.address }
|
||||
func (t *bleTestClientAdaptor) WithoutResponses(use bool) { t.withoutResponses = use }
|
||||
|
||||
func (t *bleTestClientAdaptor) ReadCharacteristic(cUUID string) (data []byte, err error) {
|
||||
t.mtx.Lock()
|
||||
|
Loading…
x
Reference in New Issue
Block a user