package
0.0.0-20250204080417-ad8b278ec5b7
Repository: https://github.com/bluetuith-org/api-native.git
Documentation: pkg.go.dev
# Functions
AdapterEvent returns an event interface to publish/subscribe to adapter events.
DeviceEvent returns an event interface to publish/subscribe to device events.
DeviceTypeFromClass parses the device class and returns its type.
ErrorEvent returns an event interface to publish/subscribe to error events.
FileTransferEvent returns an event interface to publish/subscribe to file transfer events.
MediaEvent returns an event interface to publish/subscribe to media events.
NewAuthTimeout returns a new authentication timeout token.
ParseMAC parses the given MAC address, which must be in 11:22:33:AA:BB:CC format.
ServiceExists checks if the service class ID exists in the UUID list.
ServiceType returns a service description of the service UUID.
# Constants
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
The different types of event actions.
The different types of event actions.
The different types of event actions.
The different types of event actions.
The different types of event IDs.
The zero value for this type.
The different types of event IDs.
The different types of event IDs.
The different types of event IDs.
The different types of event IDs.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
MaxAddressBytesLength is the maximum length of a Bluetooth address string as a byte array.
MaxAddressStringLength is the maximum length of a Bluetooth address string (with ':').
The different values for the media player status.
The different values for the media player status.
The different values for the media player status.
The different values for the media player status.
The different values for the media player status.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
The different Bluetooth supported network types.
The different Bluetooth supported network types.
NumAddressBytes is the total number of bytes in a MacAddress byte array.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
The different transfer status types.
The different transfer status types.
The different transfer status types.
The different transfer status types.
The different transfer status types.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
Service Class identifiers.
# Variables
Services stores a service UUID and its corresponding description.
# Structs
AdapterData holds the static bluetooth adapter information installed for a system.
AdapterEventData holds the dynamic (variable) bluetooth adapter information.
AuthTimeout describes an authentication timeout duration.
DefaultAuthorizer describes a default authentication handler.
DeviceData holds the static bluetooth device information installed for a system.
DeviceEventData holds the dynamic (variable) bluetooth device information.
Event represents a general event.
FileTransferData holds the static file transfer data for a device.
FileTransferEventData holds the dynamic (variable) file transfer data for a device.
MediaData holds the media player information.
MediaEventData holds the media player event information.
NetworkDunSettings holds the DUN-specific connection settings.
Subscriber describes a subscriber token.
TrackData describes the track properties of the currently playing media.
# Interfaces
Adapter describes a function call interface to invoke adapter related functions.
AuthorizeDevicePairing describes an authentication interface, which is used to request authentication to pair a device.
AuthorizeReceiveFile describes an authentication interface, which is used to authorize a file transfer being received, before starting the transfer.
Device describes a function call interface to invoke device related functions.
Events defines a set of possible event data types.
MediaPlayer describes a function call interface to invoke media player/control related functions on a device.
Network describes a function call interface to invoke Network related functions on specified devices.
Obex describes a function call interface to invoke Obex related functions on specified devices.
ObexFileTransfer describes a function call interface to manage file-transfer related functions on specified devices.
Session describes a Bluetooth application session.
SessionAuthorizer describes an authentication interface for authorizing session functions.
# Type aliases
EventAction describes an action that is associated with an event.
EventID represents a unique event ID.
FileTransferStatus describes the status of the file transfer.
MacAddress represents a Bluetooth address.
MediaStatus indicates the status of the media player.
NetworkType specifies the network type.