consts

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2026 License: CC0-1.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Creator                           = 0
	ServiceTypePrimary                = 0
	ServiceTypeSecondary              = 1
	AddressTypeAnonymous              = 255
	AddressTypePublic                 = 0
	AddressTypeRandom                 = 1
	AddressTypeUnknown                = 65535
	BondBonded                        = 12
	BondBonding                       = 11
	BondNone                          = 10
	DeviceTypeClassic                 = 1
	DeviceTypeDual                    = 3
	DeviceTypeLe                      = 2
	DeviceTypeUnknown                 = 0
	EncryptionAlgorithmAes            = 2
	EncryptionAlgorithmE0             = 1
	EncryptionAlgorithmNone           = 0
	Error                             = -2147483648
	PairingVariantPasskeyConfirmation = 2
	PairingVariantPin                 = 0
	PhyLe1m                           = 1
	PhyLe1mMask                       = 1
	PhyLe2m                           = 2
	PhyLe2mMask                       = 2
	PhyLeCoded                        = 3
	PhyLeCodedMask                    = 4
	PhyOptionNoPreferred              = 0
	PhyOptionS2                       = 1
	PhyOptionS8                       = 2
	TransportAuto                     = 0
	TransportBredr                    = 1
	TransportLe                       = 2
	ScanModeConnectable               = 21
	ScanModeConnectableDiscoverable   = 23
	ScanModeNone                      = 20
	StateConnected                    = 2
	StateConnecting                   = 1
	StateDisconnected                 = 0
	StateDisconnecting                = 3
	StateOff                          = 10
	StateOn                           = 12
	StateTurningOff                   = 13
	StateTurningOn                    = 11
	FormatFloat                       = 52
	FormatSfloat                      = 50
	FormatSint16                      = 34
	FormatSint32                      = 36
	FormatSint8                       = 33
	FormatUint16                      = 18
	FormatUint32                      = 20
	FormatUint8                       = 17
	PermissionRead                    = 1
	PermissionReadEncrypted           = 2
	PermissionReadEncryptedMitm       = 4
	PermissionWrite                   = 16
	PermissionWriteEncrypted          = 32
	PermissionWriteEncryptedMitm      = 64
	PermissionWriteSigned             = 128
	PermissionWriteSignedMitm         = 256
	PropertyBroadcast                 = 1
	PropertyExtendedProps             = 128
	PropertyIndicate                  = 32
	PropertyNotify                    = 16
	PropertyRead                      = 2
	PropertySignedWrite               = 64
	PropertyWrite                     = 8
	PropertyWriteNoResponse           = 4
	WriteTypeDefault                  = 2
	WriteTypeNoResponse               = 1
	WriteTypeSigned                   = 4
	TypeL2cap                         = 3
	TypeLe                            = 4
	TypeRfcomm                        = 1
	TypeSco                           = 2
	ConnectionPriorityBalanced        = 0
	ConnectionPriorityDck             = 3
	ConnectionPriorityHigh            = 1
	ConnectionPriorityLowPower        = 2
	GattConnectionCongested           = 143
	GattConnectionTimeout             = 147
	GattFailure                       = 257
	GattInsufficientAuthentication    = 5
	GattInsufficientAuthorization     = 8
	GattInsufficientEncryption        = 15
	GattInvalidAttributeLength        = 13
	GattInvalidOffset                 = 7
	GattReadNotPermitted              = 2
	GattRequestNotSupported           = 6
	GattSuccess                       = 0
	GattWriteNotPermitted             = 3
	DisableNotificationValue          = 0
	EnableIndicationValue             = 0
	EnableNotificationValue           = 0
)
View Source
const (
	ActionAclConnected           = "android.bluetooth.device.action.ACL_CONNECTED"
	ActionAclDisconnected        = "android.bluetooth.device.action.ACL_DISCONNECTED"
	ActionAclDisconnectRequested = "android.bluetooth.device.action.ACL_DISCONNECT_REQUESTED"
	ActionAliasChanged           = "android.bluetooth.device.action.ALIAS_CHANGED"
	ActionBondStateChanged       = "android.bluetooth.device.action.BOND_STATE_CHANGED"
	ActionClassChanged           = "android.bluetooth.device.action.CLASS_CHANGED"
	ActionEncryptionChange       = "android.bluetooth.device.action.ENCRYPTION_CHANGE"
	ActionFound                  = "android.bluetooth.device.action.FOUND"
	ActionKeyMissing             = "android.bluetooth.device.action.KEY_MISSING"
	ActionNameChanged            = "android.bluetooth.device.action.NAME_CHANGED"
	ActionPairingRequest         = "android.bluetooth.device.action.PAIRING_REQUEST"
	ActionUuid                   = "android.bluetooth.device.action.UUID"
	ExtraBondState               = "android.bluetooth.device.extra.BOND_STATE"
	ExtraClass                   = "android.bluetooth.device.extra.CLASS"
	ExtraDevice                  = "android.bluetooth.device.extra.DEVICE"
	ExtraEncryptionAlgorithm     = "android.bluetooth.device.extra.EXTRA_ENCRYPTION_ALGORITHM"
	ExtraEncryptionEnabled       = "android.bluetooth.device.extra.ENCRYPTION_ENABLED"
	ExtraEncryptionStatus        = "android.bluetooth.device.extra.ENCRYPTION_STATUS"
	ExtraIsCoordinatedSetMember  = "android.bluetooth.extra.IS_COORDINATED_SET_MEMBER"
	ExtraKeySize                 = "android.bluetooth.device.extra.KEY_SIZE"
	ExtraName                    = "android.bluetooth.device.extra.NAME"
	ExtraPairingKey              = "android.bluetooth.device.extra.PAIRING_KEY"
	ExtraPairingVariant          = "android.bluetooth.device.extra.PAIRING_VARIANT"
	ExtraPreviousBondState       = "android.bluetooth.device.extra.PREVIOUS_BOND_STATE"
	ExtraRssi                    = "android.bluetooth.device.extra.RSSI"
	ExtraTransport               = "android.bluetooth.device.extra.TRANSPORT"
	ExtraUuid                    = "android.bluetooth.device.extra.UUID"
	ActionConnectionStateChanged = "android.bluetooth.adapter.action.CONNECTION_STATE_CHANGED"
	ActionDiscoveryFinished      = "android.bluetooth.adapter.action.DISCOVERY_FINISHED"
	ActionDiscoveryStarted       = "android.bluetooth.adapter.action.DISCOVERY_STARTED"
	ActionLocalNameChanged       = "android.bluetooth.adapter.action.LOCAL_NAME_CHANGED"
	ActionRequestDiscoverable    = "android.bluetooth.adapter.action.REQUEST_DISCOVERABLE"
	ActionRequestEnable          = "android.bluetooth.adapter.action.REQUEST_ENABLE"
	ActionScanModeChanged        = "android.bluetooth.adapter.action.SCAN_MODE_CHANGED"
	ActionStateChanged           = "android.bluetooth.adapter.action.STATE_CHANGED"
	ExtraConnectionState         = "android.bluetooth.adapter.extra.CONNECTION_STATE"
	ExtraDiscoverableDuration    = "android.bluetooth.adapter.extra.DISCOVERABLE_DURATION"
	ExtraLocalName               = "android.bluetooth.adapter.extra.LOCAL_NAME"
	ExtraPreviousConnectionState = "android.bluetooth.adapter.extra.PREVIOUS_CONNECTION_STATE"
	ExtraPreviousScanMode        = "android.bluetooth.adapter.extra.PREVIOUS_SCAN_MODE"
	ExtraPreviousState           = "android.bluetooth.adapter.extra.PREVIOUS_STATE"
	ExtraScanMode                = "android.bluetooth.adapter.extra.SCAN_MODE"
	ExtraState                   = "android.bluetooth.adapter.extra.STATE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL