package
1.0.1
Repository: https://github.com/phommel/go-bluetooth.git
Documentation: pkg.go.dev

# Functions

AdapterExists checks if an adapter is available.
ClearDevice free a device struct.
ClearDevices clear cached devices.
Exit performs a clean exit.
FlushDevices clears removes device and clears it from cached devices.
GetAdapter return an adapter object instance.
GetAdapterStatus return the status of an adapter.
GetDeviceByAddress return a Device object based on its address.
GetDeviceList returns a list of discovered Devices paths.
GetDevices returns a list of bluetooth discovered Devices.
GetGattManager return a GattManager1 instance.
GetHCIConfig return an HCIConfig struct.
GetManager return the object manager reference.
NewDevice creates a new Device.
NewGattService creates a new GATT Service.
NewManager creates a new manager instance.
Off remove an event handler.
On add an event handler.
ParseDevice parse a Device from a ObjectManager map.
StartDiscovery on adapter hci0.
StartDiscoveryOn start discovery on specified adapter.
StopDiscovery on adapter hci0.
StopDiscoveryOn start discovery on specified adapter.
ToggleAdapter Swap Off/On a device.
ToggleBluetooth toggle off/on the bluetooth support.
TurnOffAdapter Enable a rfkill managed device.
TurnOffBluetooth turn on bluetooth support.
TurnOnAdapter Enable a rfkill managed device.
TurnOnBluetooth turn on bluetooth support.

# Constants

DeviceAdded indicates the device interface appeared.
DeviceRemoved indicates the device interface disappeared.
StatusAdded something has been added.
StatusRemoved something has been removed.

# Structs

AdapterEvent reports the availability of a bluetooth adapter.
DataEvent triggered when a new data value is available.
Device return an API to interact with a DBus device.
DiscoveredDeviceEvent contains detail regarding an ongoing discovery operation.
GattCharacteristicEvent triggered when a new GattCharacteristic1 is added or removed.
GattDescriptorEvent triggered when a new GattDescriptor1 is added or removed.
GattService a GATT service for a Device.
GattServiceEvent triggered when a new GattService1 is added or removed.
Manager track changes in the bluez dbus tree reflecting protocol updates.
PropertyChangedEvent an object to describe a changed property.

# Type aliases

DeviceStatus indicate the status of a device.
EventStatus indicate the status related to an event.