Versions in this module Expand all Collapse all v1 v1.13.0 May 22, 2019 Changes in this version + type BLEConnector interface + Address func() string + Connect func() error + Disconnect func() error + Finalize func() error + Name func() string + ReadCharacteristic func(string) ([]byte, error) + Reconnect func() error + SetName func(string) + Subscribe func(string, func([]byte, error)) error + WithoutResponses func(bool) + WriteCharacteristic func(string, []byte) error + type BatteryDriver struct + func NewBatteryDriver(a BLEConnector) *BatteryDriver + func (b *BatteryDriver) Connection() gobot.Connection + func (b *BatteryDriver) GetBatteryLevel() (level uint8) + func (b *BatteryDriver) Halt() (err error) + func (b *BatteryDriver) Name() string + func (b *BatteryDriver) SetName(n string) + func (b *BatteryDriver) Start() (err error) + type ClientAdaptor struct + DeviceName string + func NewClientAdaptor(address string) *ClientAdaptor + func (b *ClientAdaptor) Address() string + func (b *ClientAdaptor) Connect() (err error) + func (b *ClientAdaptor) Disconnect() (err error) + func (b *ClientAdaptor) Finalize() (err error) + func (b *ClientAdaptor) Name() string + func (b *ClientAdaptor) ReadCharacteristic(cUUID string) (data []byte, err error) + func (b *ClientAdaptor) Reconnect() (err error) + func (b *ClientAdaptor) SetName(n string) + func (b *ClientAdaptor) Subscribe(cUUID string, f func([]byte, error)) (err error) + func (b *ClientAdaptor) WithoutResponses(use bool) + func (b *ClientAdaptor) WriteCharacteristic(cUUID string, data []byte) (err error) + type DeviceInformationDriver struct + func NewDeviceInformationDriver(a BLEConnector) *DeviceInformationDriver + func (b *DeviceInformationDriver) Connection() gobot.Connection + func (b *DeviceInformationDriver) GetFirmwareRevision() (revision string) + func (b *DeviceInformationDriver) GetHardwareRevision() (revision string) + func (b *DeviceInformationDriver) GetManufacturerName() (manufacturer string) + func (b *DeviceInformationDriver) GetModelNumber() (model string) + func (b *DeviceInformationDriver) GetPnPId() (model string) + func (b *DeviceInformationDriver) Halt() (err error) + func (b *DeviceInformationDriver) Name() string + func (b *DeviceInformationDriver) SetName(n string) + func (b *DeviceInformationDriver) Start() (err error) + type GenericAccessDriver struct + func NewGenericAccessDriver(a BLEConnector) *GenericAccessDriver + func (b *GenericAccessDriver) Connection() gobot.Connection + func (b *GenericAccessDriver) GetAppearance() string + func (b *GenericAccessDriver) GetDeviceName() string + func (b *GenericAccessDriver) Halt() (err error) + func (b *GenericAccessDriver) Name() string + func (b *GenericAccessDriver) SetName(n string) + func (b *GenericAccessDriver) Start() (err error) + type SerialPort struct + func NewSerialPort(address string, rid string, tid string) *SerialPort + func (p *SerialPort) Address() string + func (p *SerialPort) Close() (err error) + func (p *SerialPort) Open() (err error) + func (p *SerialPort) Read(b []byte) (n int, err error) + func (p *SerialPort) Write(b []byte) (n int, err error)