Documentation ¶
Index ¶
- func HandleAdapterAdded(adapt BleAdapter, properties cbble.Properties)
- func HandleAdapterPropertyChanged(adapt BleAdapter, signal *dbus.Signal)
- func HandleDeviceAdded(adapt BleAdapter, properties cbble.Properties)
- func HandleDeviceBlockedChange(adapt BleAdapter, signal *dbus.Signal)
- func HandleDeviceConnectedChange(adapt BleAdapter, signal *dbus.Signal)
- func HandleDevicePairedChange(adapt BleAdapter, signal *dbus.Signal)
- func HandleDevicePropertyChanged(adapt BleAdapter, signal *dbus.Signal)
- func HandleDeviceRssiChange(adapt BleAdapter, signal *dbus.Signal)
- func HandleDeviceServicesResolvedChange(adapt BleAdapter, signal *dbus.Signal)
- func HandleDeviceTrustedChange(adapt BleAdapter, signal *dbus.Signal)
- func HandleDeviceTxPowerChange(adapt BleAdapter, signal *dbus.Signal)
- func HandleGattCharacteristicAdded(adapt BleAdapter, properties cbble.Properties)
- func HandleGattCharacteristicPropertyChanged(adapt BleAdapter, signal *dbus.Signal)
- func HandleGattDescriptorAdded(adapt BleAdapter, properties cbble.Properties)
- func HandleGattDescriptorPropertyChanged(adapt BleAdapter, signal *dbus.Signal)
- func HandleGattServiceAdded(adapt BleAdapter, properties cbble.Properties)
- func HandleGattServicePropertyChanged(adapt BleAdapter, signal *dbus.Signal)
- func HandleInterfaceAdded(adapt BleAdapter, signal *dbus.Signal)
- func HandleInterfaceRemoved(adapt BleAdapter, signal *dbus.Signal)
- func HandlePropertyChanged(adapt BleAdapter, signal *dbus.Signal)
- type BLECommand
- type BleAdapter
- type CancelPairing
- type Connect
- type Disconnect
- type Pair
- type Read
- type Remove
- type Write
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleAdapterAdded ¶
func HandleAdapterAdded(adapt BleAdapter, properties cbble.Properties)
HandleAdapterAdded - Future development
func HandleAdapterPropertyChanged ¶
func HandleAdapterPropertyChanged(adapt BleAdapter, signal *dbus.Signal)
HandleAdapterPropertyChanged - Future development
func HandleDeviceAdded ¶
func HandleDeviceAdded(adapt BleAdapter, properties cbble.Properties)
HandleDeviceAdded - Publish new devices to the platform
func HandleDeviceBlockedChange ¶
func HandleDeviceBlockedChange(adapt BleAdapter, signal *dbus.Signal)
HandleDeviceBlockedChange - Future development
func HandleDeviceConnectedChange ¶
func HandleDeviceConnectedChange(adapt BleAdapter, signal *dbus.Signal)
HandleDeviceConnectedChange - Future development
func HandleDevicePairedChange ¶
func HandleDevicePairedChange(adapt BleAdapter, signal *dbus.Signal)
HandleDevicePairedChange - Future development
func HandleDevicePropertyChanged ¶
func HandleDevicePropertyChanged(adapt BleAdapter, signal *dbus.Signal)
HandleDevicePropertyChanged - Future development
func HandleDeviceRssiChange ¶
func HandleDeviceRssiChange(adapt BleAdapter, signal *dbus.Signal)
HandleDeviceRssiChange - Future development
func HandleDeviceServicesResolvedChange ¶
func HandleDeviceServicesResolvedChange(adapt BleAdapter, signal *dbus.Signal)
HandleDeviceServicesResolvedChange - Future development
func HandleDeviceTrustedChange ¶
func HandleDeviceTrustedChange(adapt BleAdapter, signal *dbus.Signal)
HandleDeviceTrustedChange - Future development
func HandleDeviceTxPowerChange ¶
func HandleDeviceTxPowerChange(adapt BleAdapter, signal *dbus.Signal)
HandleDeviceTxPowerChange - Future development
func HandleGattCharacteristicAdded ¶
func HandleGattCharacteristicAdded(adapt BleAdapter, properties cbble.Properties)
HandleGattCharacteristicAdded - Future development
func HandleGattCharacteristicPropertyChanged ¶
func HandleGattCharacteristicPropertyChanged(adapt BleAdapter, signal *dbus.Signal)
HandleGattCharacteristicPropertyChanged - Future development
func HandleGattDescriptorAdded ¶
func HandleGattDescriptorAdded(adapt BleAdapter, properties cbble.Properties)
HandleGattDescriptorAdded - Future development
func HandleGattDescriptorPropertyChanged ¶
func HandleGattDescriptorPropertyChanged(adapt BleAdapter, signal *dbus.Signal)
HandleGattDescriptorPropertyChanged - Future development
func HandleGattServiceAdded ¶
func HandleGattServiceAdded(adapt BleAdapter, properties cbble.Properties)
HandleGattServiceAdded - Future development
func HandleGattServicePropertyChanged ¶
func HandleGattServicePropertyChanged(adapt BleAdapter, signal *dbus.Signal)
HandleGattServicePropertyChanged - Future development
func HandleInterfaceAdded ¶
func HandleInterfaceAdded(adapt BleAdapter, signal *dbus.Signal)
HandleInterfaceAdded - Determine the interface the InterfaceAdded signal occured on and handle the signal accordingly
func HandleInterfaceRemoved ¶
func HandleInterfaceRemoved(adapt BleAdapter, signal *dbus.Signal)
HandleInterfaceRemoved - Future development
Determine the interface the InterfaceRemoved signal occured on and handle the signal accordingly
func HandlePropertyChanged ¶
func HandlePropertyChanged(adapt BleAdapter, signal *dbus.Signal)
HandlePropertyChanged - Determine the interface the PropertyChanged signal occured on and handle the signal accordingly
Types ¶
type BLECommand ¶
type BLECommand struct {
// contains filtered or unexported fields
}
BLECommand - A struct used to encapsulate a BLE command received from the platform
func NewBLECommand ¶
func NewBLECommand(theBleAdapter *BleAdapter, jsoncommand map[string]interface{}) *BLECommand
func (BLECommand) Execute ¶
func (cmd BLECommand) Execute() error
Execute - Retrieve the BLE device from the object cache and execute the subcommands against the device
type BleAdapter ¶
type BleAdapter struct {
// contains filtered or unexported fields
}
BleAdapter - Struct that represents a BLE Adapter
func (*BleAdapter) OnConnect ¶
func (adapt *BleAdapter) OnConnect(client MQTT.Client)
OnConnect - MQTT callback invoked when a connection is established with a broker When the connection to the broker is complete, set up the subscriptions
func (*BleAdapter) OnConnectLost ¶
func (adapt *BleAdapter) OnConnectLost(client MQTT.Client, connerr error)
OnConnectLost - MQTT callback invoked when a connection to a broker is lost If the connection to the broker is lost, we need to reconnect and re-establish all of the subscriptions
func (*BleAdapter) Start ¶
func (adapt *BleAdapter) Start(devClient *cb.DeviceClient, theScanInterval int)
Start - Starts execution of the BLEAdapter
type CancelPairing ¶
type CancelPairing struct{}
CancelPairing - A struct used to encapsulate a BLE device "cancel pairing" subcommand
func (CancelPairing) Name ¶
func (cmd CancelPairing) Name() string
Name - Return the name of the subcommand
func (CancelPairing) Process ¶
func (cmd CancelPairing) Process(blecmd *BLECommand) error
Process - Execute the subcommand
type Connect ¶
type Connect struct{}
Connect - A struct used to encapsulate a BLE device "connect" subcommand
func (Connect) Process ¶
func (cmd Connect) Process(blecmd *BLECommand) error
Process - Execute the subcommand
type Disconnect ¶
type Disconnect struct{}
Disconnect - A struct used to encapsulate a BLE device "disconnect" subcommand
func (Disconnect) Name ¶
func (cmd Disconnect) Name() string
Name - Return the name of the subcommand
func (Disconnect) Process ¶
func (cmd Disconnect) Process(blecmd *BLECommand) error
Process - Execute the subcommand
type Pair ¶
type Pair struct{}
Pair - A struct used to encapsulate a BLE device "pair" subcommand
func (Pair) Process ¶
func (cmd Pair) Process(blecmd *BLECommand) error
Process - Execute the subcommand
type Read ¶
type Read struct{}
Read - A struct used to encapsulate a BLE device "read" subcommand
func (Read) Process ¶
func (cmd Read) Process(blecmd *BLECommand) error
Process - Execute the subcommand
type Remove ¶
type Remove struct{}
Remove - A struct used to encapsulate a BLE device "remove" subcommand
func (Remove) Process ¶
func (cmd Remove) Process(blecmd *BLECommand) error
Process - Execute the subcommand