genericattributeprofile

package
v0.0.0-...-c45669f Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const GUIDiGattCharacteristic string = "59cb50c1-5934-4f68-a198-eb864fa44e6b"
View Source
const GUIDiGattCharacteristic2 string = "ae1ab578-ec06-4764-b780-9835a1d35d6e"
View Source
const GUIDiGattCharacteristic3 string = "3f3c663e-93d4-406b-b817-db81f8ed53b3"
View Source
const GUIDiGattCharacteristicsResult string = "1194945c-b257-4f3e-9db7-f68bc9a9aef2"
View Source
const GUIDiGattClientNotificationResult string = "506d5599-0112-419a-8e3b-ae21afabd2c2"
View Source
const GUIDiGattClientNotificationResult2 string = "8faec497-45e0-497e-9582-29a1fe281ad5"
View Source
const GUIDiGattDeviceService string = "ac7b7c05-b33c-47cf-990f-6b8f5577df71"
View Source
const GUIDiGattDeviceService2 string = "fc54520b-0b0d-4708-bae0-9ffd9489bc59"
View Source
const GUIDiGattDeviceService3 string = "b293a950-0c53-437c-a9b3-5c3210c6e569"
View Source
const GUIDiGattDeviceServicesResult string = "171dd3ee-016d-419d-838a-576cf475a3d8"
View Source
const GUIDiGattLocalCharacteristic string = "aede376d-5412-4d74-92a8-8deb8526829c"
View Source
const GUIDiGattLocalCharacteristicParameters string = "faf73db4-4cff-44c7-8445-040e6ead0063"
View Source
const GUIDiGattLocalCharacteristicResult string = "7975de9b-0170-4397-9666-92f863f12ee6"
View Source
const GUIDiGattLocalDescriptorParameters string = "5fdede6a-f3c1-4b66-8c4b-e3d2293b40e9"
View Source
const GUIDiGattLocalService string = "f513e258-f7f7-4902-b803-57fcc7d6fe83"
View Source
const GUIDiGattReadRequest string = "f1dd6535-6acd-42a6-a4bb-d789dae0043e"
View Source
const GUIDiGattReadRequestedEventArgs string = "93497243-f39c-484b-8ab6-996ba486cfa3"
View Source
const GUIDiGattReadResult string = "63a66f08-1aea-4c4c-a50f-97bae474b348"
View Source
const GUIDiGattReadResult2 string = "a10f50a0-fb43-48af-baaa-638a5c6329fe"
View Source
const GUIDiGattServiceProvider string = "7822b3cd-2889-4f86-a051-3f0aed1c2760"
View Source
const GUIDiGattServiceProviderAdvertisingParameters string = "e2ce31ab-6315-4c22-9bd7-781dbc3d8d82"
View Source
const GUIDiGattServiceProviderAdvertisingParameters2 string = "ff68468d-ca92-4434-9743-0e90988ad879"
View Source
const GUIDiGattServiceProviderResult string = "764696d8-c53e-428c-8a48-67afe02c3ae6"
View Source
const GUIDiGattServiceProviderStatics string = "31794063-5256-4054-a4f4-7bbe7755a57e"
View Source
const GUIDiGattSession string = "d23b5143-e04e-4c24-999c-9c256f9856b1"
View Source
const GUIDiGattSessionStatics string = "2e65b95c-539f-4db7-82a8-73bdbbf73ebf"
View Source
const GUIDiGattSubscribedClient string = "736e9001-15a4-4ec2-9248-e3f20d463be9"
View Source
const GUIDiGattValueChangedEventArgs string = "d21bdb54-06e3-4ed8-a263-acfac8ba7313"
View Source
const GUIDiGattWriteRequest string = "aeb6a9ed-de2f-4fc2-a9a8-94ea7844f13d"
View Source
const GUIDiGattWriteRequestedEventArgs string = "2dec8bbe-a73a-471a-94d5-037deadd0806"
View Source
const SignatureGattCharacteristic string = "rc(Windows.Devices.Bluetooth.GenericAttributeProfile.GattCharacteristic;{59cb50c1-5934-4f68-a198-eb864fa44e6b})"
View Source
const SignatureGattCharacteristicProperties string = "enum(Windows.Devices.Bluetooth.GenericAttributeProfile.GattCharacteristicProperties;u4)"
View Source
const SignatureGattCharacteristicsResult string = "rc(Windows.Devices.Bluetooth.GenericAttributeProfile.GattCharacteristicsResult;{1194945c-b257-4f3e-9db7-f68bc9a9aef2})"
View Source
const SignatureGattClientCharacteristicConfigurationDescriptorValue string = "enum(Windows.Devices.Bluetooth.GenericAttributeProfile.GattClientCharacteristicConfigurationDescriptorValue;i4)"
View Source
const SignatureGattClientNotificationResult string = "rc(Windows.Devices.Bluetooth.GenericAttributeProfile.GattClientNotificationResult;{506d5599-0112-419a-8e3b-ae21afabd2c2})"
View Source
const SignatureGattCommunicationStatus string = "enum(Windows.Devices.Bluetooth.GenericAttributeProfile.GattCommunicationStatus;i4)"
View Source
const SignatureGattDeviceService string = "rc(Windows.Devices.Bluetooth.GenericAttributeProfile.GattDeviceService;{ac7b7c05-b33c-47cf-990f-6b8f5577df71})"
View Source
const SignatureGattDeviceServicesResult string = "rc(Windows.Devices.Bluetooth.GenericAttributeProfile.GattDeviceServicesResult;{171dd3ee-016d-419d-838a-576cf475a3d8})"
View Source
const SignatureGattLocalCharacteristic string = "rc(Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalCharacteristic;{aede376d-5412-4d74-92a8-8deb8526829c})"
View Source
const SignatureGattLocalCharacteristicParameters string = "" /* 126-byte string literal not displayed */
View Source
const SignatureGattLocalCharacteristicResult string = "rc(Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalCharacteristicResult;{7975de9b-0170-4397-9666-92f863f12ee6})"
View Source
const SignatureGattLocalDescriptorParameters string = "rc(Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalDescriptorParameters;{5fdede6a-f3c1-4b66-8c4b-e3d2293b40e9})"
View Source
const SignatureGattLocalService string = "rc(Windows.Devices.Bluetooth.GenericAttributeProfile.GattLocalService;{f513e258-f7f7-4902-b803-57fcc7d6fe83})"
View Source
const SignatureGattProtectionLevel string = "enum(Windows.Devices.Bluetooth.GenericAttributeProfile.GattProtectionLevel;i4)"
View Source
const SignatureGattReadRequest string = "rc(Windows.Devices.Bluetooth.GenericAttributeProfile.GattReadRequest;{f1dd6535-6acd-42a6-a4bb-d789dae0043e})"
View Source
const SignatureGattReadRequestedEventArgs string = "rc(Windows.Devices.Bluetooth.GenericAttributeProfile.GattReadRequestedEventArgs;{93497243-f39c-484b-8ab6-996ba486cfa3})"
View Source
const SignatureGattReadResult string = "rc(Windows.Devices.Bluetooth.GenericAttributeProfile.GattReadResult;{63a66f08-1aea-4c4c-a50f-97bae474b348})"
View Source
const SignatureGattRequestState string = "enum(Windows.Devices.Bluetooth.GenericAttributeProfile.GattRequestState;i4)"
View Source
const SignatureGattServiceProvider string = "rc(Windows.Devices.Bluetooth.GenericAttributeProfile.GattServiceProvider;{7822b3cd-2889-4f86-a051-3f0aed1c2760})"
View Source
const SignatureGattServiceProviderAdvertisementStatus string = "enum(Windows.Devices.Bluetooth.GenericAttributeProfile.GattServiceProviderAdvertisementStatus;i4)"
View Source
const SignatureGattServiceProviderAdvertisingParameters string = "" /* 133-byte string literal not displayed */
View Source
const SignatureGattServiceProviderResult string = "rc(Windows.Devices.Bluetooth.GenericAttributeProfile.GattServiceProviderResult;{764696d8-c53e-428c-8a48-67afe02c3ae6})"
View Source
const SignatureGattSession string = "rc(Windows.Devices.Bluetooth.GenericAttributeProfile.GattSession;{d23b5143-e04e-4c24-999c-9c256f9856b1})"
View Source
const SignatureGattSubscribedClient string = "rc(Windows.Devices.Bluetooth.GenericAttributeProfile.GattSubscribedClient;{736e9001-15a4-4ec2-9248-e3f20d463be9})"
View Source
const SignatureGattValueChangedEventArgs string = "rc(Windows.Devices.Bluetooth.GenericAttributeProfile.GattValueChangedEventArgs;{d21bdb54-06e3-4ed8-a263-acfac8ba7313})"
View Source
const SignatureGattWriteOption string = "enum(Windows.Devices.Bluetooth.GenericAttributeProfile.GattWriteOption;i4)"
View Source
const SignatureGattWriteRequest string = "rc(Windows.Devices.Bluetooth.GenericAttributeProfile.GattWriteRequest;{aeb6a9ed-de2f-4fc2-a9a8-94ea7844f13d})"
View Source
const SignatureGattWriteRequestedEventArgs string = "rc(Windows.Devices.Bluetooth.GenericAttributeProfile.GattWriteRequestedEventArgs;{2dec8bbe-a73a-471a-94d5-037deadd0806})"
View Source
const SignatureiGattCharacteristic string = "{59cb50c1-5934-4f68-a198-eb864fa44e6b}"
View Source
const SignatureiGattCharacteristic2 string = "{ae1ab578-ec06-4764-b780-9835a1d35d6e}"
View Source
const SignatureiGattCharacteristic3 string = "{3f3c663e-93d4-406b-b817-db81f8ed53b3}"
View Source
const SignatureiGattCharacteristicsResult string = "{1194945c-b257-4f3e-9db7-f68bc9a9aef2}"
View Source
const SignatureiGattClientNotificationResult string = "{506d5599-0112-419a-8e3b-ae21afabd2c2}"
View Source
const SignatureiGattClientNotificationResult2 string = "{8faec497-45e0-497e-9582-29a1fe281ad5}"
View Source
const SignatureiGattDeviceService string = "{ac7b7c05-b33c-47cf-990f-6b8f5577df71}"
View Source
const SignatureiGattDeviceService2 string = "{fc54520b-0b0d-4708-bae0-9ffd9489bc59}"
View Source
const SignatureiGattDeviceService3 string = "{b293a950-0c53-437c-a9b3-5c3210c6e569}"
View Source
const SignatureiGattDeviceServicesResult string = "{171dd3ee-016d-419d-838a-576cf475a3d8}"
View Source
const SignatureiGattLocalCharacteristic string = "{aede376d-5412-4d74-92a8-8deb8526829c}"
View Source
const SignatureiGattLocalCharacteristicParameters string = "{faf73db4-4cff-44c7-8445-040e6ead0063}"
View Source
const SignatureiGattLocalCharacteristicResult string = "{7975de9b-0170-4397-9666-92f863f12ee6}"
View Source
const SignatureiGattLocalDescriptorParameters string = "{5fdede6a-f3c1-4b66-8c4b-e3d2293b40e9}"
View Source
const SignatureiGattLocalService string = "{f513e258-f7f7-4902-b803-57fcc7d6fe83}"
View Source
const SignatureiGattReadRequest string = "{f1dd6535-6acd-42a6-a4bb-d789dae0043e}"
View Source
const SignatureiGattReadRequestedEventArgs string = "{93497243-f39c-484b-8ab6-996ba486cfa3}"
View Source
const SignatureiGattReadResult string = "{63a66f08-1aea-4c4c-a50f-97bae474b348}"
View Source
const SignatureiGattReadResult2 string = "{a10f50a0-fb43-48af-baaa-638a5c6329fe}"
View Source
const SignatureiGattServiceProvider string = "{7822b3cd-2889-4f86-a051-3f0aed1c2760}"
View Source
const SignatureiGattServiceProviderAdvertisingParameters string = "{e2ce31ab-6315-4c22-9bd7-781dbc3d8d82}"
View Source
const SignatureiGattServiceProviderAdvertisingParameters2 string = "{ff68468d-ca92-4434-9743-0e90988ad879}"
View Source
const SignatureiGattServiceProviderResult string = "{764696d8-c53e-428c-8a48-67afe02c3ae6}"
View Source
const SignatureiGattServiceProviderStatics string = "{31794063-5256-4054-a4f4-7bbe7755a57e}"
View Source
const SignatureiGattSession string = "{d23b5143-e04e-4c24-999c-9c256f9856b1}"
View Source
const SignatureiGattSessionStatics string = "{2e65b95c-539f-4db7-82a8-73bdbbf73ebf}"
View Source
const SignatureiGattSubscribedClient string = "{736e9001-15a4-4ec2-9248-e3f20d463be9}"
View Source
const SignatureiGattValueChangedEventArgs string = "{d21bdb54-06e3-4ed8-a263-acfac8ba7313}"
View Source
const SignatureiGattWriteRequest string = "{aeb6a9ed-de2f-4fc2-a9a8-94ea7844f13d}"
View Source
const SignatureiGattWriteRequestedEventArgs string = "{2dec8bbe-a73a-471a-94d5-037deadd0806}"

Variables

This section is empty.

Functions

func GattServiceProviderCreateAsync

func GattServiceProviderCreateAsync(serviceUuid syscall.GUID) (*foundation.IAsyncOperation, error)

func GattSessionFromDeviceIdAsync

func GattSessionFromDeviceIdAsync(deviceId *bluetooth.BluetoothDeviceId) (*foundation.IAsyncOperation, error)

Types

type GattCharacteristic

type GattCharacteristic struct {
	ole.IUnknown
}

func (*GattCharacteristic) AddValueChanged

func (impl *GattCharacteristic) AddValueChanged(valueChangedHandler *foundation.TypedEventHandler) (foundation.EventRegistrationToken, error)

func (*GattCharacteristic) GetCharacteristicProperties

func (impl *GattCharacteristic) GetCharacteristicProperties() (GattCharacteristicProperties, error)

func (*GattCharacteristic) GetUuid

func (impl *GattCharacteristic) GetUuid() (syscall.GUID, error)

func (*GattCharacteristic) ReadValueAsync

func (impl *GattCharacteristic) ReadValueAsync() (*foundation.IAsyncOperation, error)

func (*GattCharacteristic) ReadValueWithCacheModeAsync

func (impl *GattCharacteristic) ReadValueWithCacheModeAsync(cacheMode bluetooth.BluetoothCacheMode) (*foundation.IAsyncOperation, error)

func (*GattCharacteristic) RemoveValueChanged

func (impl *GattCharacteristic) RemoveValueChanged(valueChangedEventCookie foundation.EventRegistrationToken) error

func (*GattCharacteristic) WriteClientCharacteristicConfigurationDescriptorAsync

func (impl *GattCharacteristic) WriteClientCharacteristicConfigurationDescriptorAsync(clientCharacteristicConfigurationDescriptorValue GattClientCharacteristicConfigurationDescriptorValue) (*foundation.IAsyncOperation, error)

func (*GattCharacteristic) WriteValueAsync

func (impl *GattCharacteristic) WriteValueAsync(value *streams.IBuffer) (*foundation.IAsyncOperation, error)

func (*GattCharacteristic) WriteValueWithOptionAsync

func (impl *GattCharacteristic) WriteValueWithOptionAsync(value *streams.IBuffer, writeOption GattWriteOption) (*foundation.IAsyncOperation, error)

type GattCharacteristicProperties

type GattCharacteristicProperties uint32
const (
	GattCharacteristicPropertiesNone                      GattCharacteristicProperties = 0
	GattCharacteristicPropertiesBroadcast                 GattCharacteristicProperties = 1
	GattCharacteristicPropertiesRead                      GattCharacteristicProperties = 2
	GattCharacteristicPropertiesWriteWithoutResponse      GattCharacteristicProperties = 4
	GattCharacteristicPropertiesWrite                     GattCharacteristicProperties = 8
	GattCharacteristicPropertiesNotify                    GattCharacteristicProperties = 16
	GattCharacteristicPropertiesIndicate                  GattCharacteristicProperties = 32
	GattCharacteristicPropertiesAuthenticatedSignedWrites GattCharacteristicProperties = 64
	GattCharacteristicPropertiesExtendedProperties        GattCharacteristicProperties = 128
	GattCharacteristicPropertiesReliableWrites            GattCharacteristicProperties = 256
	GattCharacteristicPropertiesWritableAuxiliaries       GattCharacteristicProperties = 512
)

type GattCharacteristicsResult

type GattCharacteristicsResult struct {
	ole.IUnknown
}

func (*GattCharacteristicsResult) GetCharacteristics

func (impl *GattCharacteristicsResult) GetCharacteristics() (*collections.IVectorView, error)

func (*GattCharacteristicsResult) GetStatus

type GattClientCharacteristicConfigurationDescriptorValue

type GattClientCharacteristicConfigurationDescriptorValue int32
const (
	GattClientCharacteristicConfigurationDescriptorValueNone     GattClientCharacteristicConfigurationDescriptorValue = 0
	GattClientCharacteristicConfigurationDescriptorValueNotify   GattClientCharacteristicConfigurationDescriptorValue = 1
	GattClientCharacteristicConfigurationDescriptorValueIndicate GattClientCharacteristicConfigurationDescriptorValue = 2
)

type GattClientNotificationResult

type GattClientNotificationResult struct {
	ole.IUnknown
}

func (*GattClientNotificationResult) GetBytesSent

func (impl *GattClientNotificationResult) GetBytesSent() (uint16, error)

func (*GattClientNotificationResult) GetProtocolError

func (impl *GattClientNotificationResult) GetProtocolError() (*foundation.IReference, error)

func (*GattClientNotificationResult) GetStatus

func (*GattClientNotificationResult) GetSubscribedClient

func (impl *GattClientNotificationResult) GetSubscribedClient() (*GattSubscribedClient, error)

type GattCommunicationStatus

type GattCommunicationStatus int32
const (
	GattCommunicationStatusSuccess       GattCommunicationStatus = 0
	GattCommunicationStatusUnreachable   GattCommunicationStatus = 1
	GattCommunicationStatusProtocolError GattCommunicationStatus = 2
	GattCommunicationStatusAccessDenied  GattCommunicationStatus = 3
)

type GattDeviceService

type GattDeviceService struct {
	ole.IUnknown
}

func (*GattDeviceService) Close

func (impl *GattDeviceService) Close() error

func (*GattDeviceService) GetCharacteristicsAsync

func (impl *GattDeviceService) GetCharacteristicsAsync() (*foundation.IAsyncOperation, error)

func (*GattDeviceService) GetCharacteristicsWithCacheModeAsync

func (impl *GattDeviceService) GetCharacteristicsWithCacheModeAsync(cacheMode bluetooth.BluetoothCacheMode) (*foundation.IAsyncOperation, error)

func (*GattDeviceService) GetUuid

func (impl *GattDeviceService) GetUuid() (syscall.GUID, error)

type GattDeviceServicesResult

type GattDeviceServicesResult struct {
	ole.IUnknown
}

func (*GattDeviceServicesResult) GetServices

func (impl *GattDeviceServicesResult) GetServices() (*collections.IVectorView, error)

func (*GattDeviceServicesResult) GetStatus

type GattLocalCharacteristic

type GattLocalCharacteristic struct {
	ole.IUnknown
}

func (*GattLocalCharacteristic) AddReadRequested

func (*GattLocalCharacteristic) AddSubscribedClientsChanged

func (impl *GattLocalCharacteristic) AddSubscribedClientsChanged(handler *foundation.TypedEventHandler) (foundation.EventRegistrationToken, error)

func (*GattLocalCharacteristic) AddWriteRequested

func (*GattLocalCharacteristic) CreateDescriptorAsync

func (impl *GattLocalCharacteristic) CreateDescriptorAsync(descriptorUuid syscall.GUID, parameters *GattLocalDescriptorParameters) (*foundation.IAsyncOperation, error)

func (*GattLocalCharacteristic) GetCharacteristicProperties

func (impl *GattLocalCharacteristic) GetCharacteristicProperties() (GattCharacteristicProperties, error)

func (*GattLocalCharacteristic) GetDescriptors

func (impl *GattLocalCharacteristic) GetDescriptors() (*collections.IVectorView, error)

func (*GattLocalCharacteristic) GetPresentationFormats

func (impl *GattLocalCharacteristic) GetPresentationFormats() (*collections.IVectorView, error)

func (*GattLocalCharacteristic) GetReadProtectionLevel

func (impl *GattLocalCharacteristic) GetReadProtectionLevel() (GattProtectionLevel, error)

func (*GattLocalCharacteristic) GetStaticValue

func (impl *GattLocalCharacteristic) GetStaticValue() (*streams.IBuffer, error)

func (*GattLocalCharacteristic) GetSubscribedClients

func (impl *GattLocalCharacteristic) GetSubscribedClients() (*collections.IVectorView, error)

func (*GattLocalCharacteristic) GetUserDescription

func (impl *GattLocalCharacteristic) GetUserDescription() (string, error)

func (*GattLocalCharacteristic) GetUuid

func (impl *GattLocalCharacteristic) GetUuid() (syscall.GUID, error)

func (*GattLocalCharacteristic) GetWriteProtectionLevel

func (impl *GattLocalCharacteristic) GetWriteProtectionLevel() (GattProtectionLevel, error)

func (*GattLocalCharacteristic) NotifyValueAsync

func (impl *GattLocalCharacteristic) NotifyValueAsync(value *streams.IBuffer) (*foundation.IAsyncOperation, error)

func (*GattLocalCharacteristic) NotifyValueForSubscribedClientAsync

func (impl *GattLocalCharacteristic) NotifyValueForSubscribedClientAsync(value *streams.IBuffer, subscribedClient *GattSubscribedClient) (*foundation.IAsyncOperation, error)

func (*GattLocalCharacteristic) RemoveReadRequested

func (impl *GattLocalCharacteristic) RemoveReadRequested(token foundation.EventRegistrationToken) error

func (*GattLocalCharacteristic) RemoveSubscribedClientsChanged

func (impl *GattLocalCharacteristic) RemoveSubscribedClientsChanged(token foundation.EventRegistrationToken) error

func (*GattLocalCharacteristic) RemoveWriteRequested

func (impl *GattLocalCharacteristic) RemoveWriteRequested(token foundation.EventRegistrationToken) error

type GattLocalCharacteristicParameters

type GattLocalCharacteristicParameters struct {
	ole.IUnknown
}

func NewGattLocalCharacteristicParameters

func NewGattLocalCharacteristicParameters() (*GattLocalCharacteristicParameters, error)

func (*GattLocalCharacteristicParameters) GetCharacteristicProperties

func (impl *GattLocalCharacteristicParameters) GetCharacteristicProperties() (GattCharacteristicProperties, error)

func (*GattLocalCharacteristicParameters) GetPresentationFormats

func (impl *GattLocalCharacteristicParameters) GetPresentationFormats() (*collections.IVector, error)

func (*GattLocalCharacteristicParameters) GetReadProtectionLevel

func (impl *GattLocalCharacteristicParameters) GetReadProtectionLevel() (GattProtectionLevel, error)

func (*GattLocalCharacteristicParameters) GetStaticValue

func (impl *GattLocalCharacteristicParameters) GetStaticValue() (*streams.IBuffer, error)

func (*GattLocalCharacteristicParameters) GetUserDescription

func (impl *GattLocalCharacteristicParameters) GetUserDescription() (string, error)

func (*GattLocalCharacteristicParameters) GetWriteProtectionLevel

func (impl *GattLocalCharacteristicParameters) GetWriteProtectionLevel() (GattProtectionLevel, error)

func (*GattLocalCharacteristicParameters) SetCharacteristicProperties

func (impl *GattLocalCharacteristicParameters) SetCharacteristicProperties(value GattCharacteristicProperties) error

func (*GattLocalCharacteristicParameters) SetReadProtectionLevel

func (impl *GattLocalCharacteristicParameters) SetReadProtectionLevel(value GattProtectionLevel) error

func (*GattLocalCharacteristicParameters) SetStaticValue

func (impl *GattLocalCharacteristicParameters) SetStaticValue(value *streams.IBuffer) error

func (*GattLocalCharacteristicParameters) SetUserDescription

func (impl *GattLocalCharacteristicParameters) SetUserDescription(value string) error

func (*GattLocalCharacteristicParameters) SetWriteProtectionLevel

func (impl *GattLocalCharacteristicParameters) SetWriteProtectionLevel(value GattProtectionLevel) error

type GattLocalCharacteristicResult

type GattLocalCharacteristicResult struct {
	ole.IUnknown
}

func (*GattLocalCharacteristicResult) GetCharacteristic

func (impl *GattLocalCharacteristicResult) GetCharacteristic() (*GattLocalCharacteristic, error)

func (*GattLocalCharacteristicResult) GetError

type GattLocalDescriptorParameters

type GattLocalDescriptorParameters struct {
	ole.IUnknown
}

func NewGattLocalDescriptorParameters

func NewGattLocalDescriptorParameters() (*GattLocalDescriptorParameters, error)

func (*GattLocalDescriptorParameters) GetReadProtectionLevel

func (impl *GattLocalDescriptorParameters) GetReadProtectionLevel() (GattProtectionLevel, error)

func (*GattLocalDescriptorParameters) GetStaticValue

func (impl *GattLocalDescriptorParameters) GetStaticValue() (*streams.IBuffer, error)

func (*GattLocalDescriptorParameters) GetWriteProtectionLevel

func (impl *GattLocalDescriptorParameters) GetWriteProtectionLevel() (GattProtectionLevel, error)

func (*GattLocalDescriptorParameters) SetReadProtectionLevel

func (impl *GattLocalDescriptorParameters) SetReadProtectionLevel(value GattProtectionLevel) error

func (*GattLocalDescriptorParameters) SetStaticValue

func (impl *GattLocalDescriptorParameters) SetStaticValue(value *streams.IBuffer) error

func (*GattLocalDescriptorParameters) SetWriteProtectionLevel

func (impl *GattLocalDescriptorParameters) SetWriteProtectionLevel(value GattProtectionLevel) error

type GattLocalService

type GattLocalService struct {
	ole.IUnknown
}

func (*GattLocalService) CreateCharacteristicAsync

func (impl *GattLocalService) CreateCharacteristicAsync(characteristicUuid syscall.GUID, parameters *GattLocalCharacteristicParameters) (*foundation.IAsyncOperation, error)

func (*GattLocalService) GetCharacteristics

func (impl *GattLocalService) GetCharacteristics() (*collections.IVectorView, error)

func (*GattLocalService) GetUuid

func (impl *GattLocalService) GetUuid() (syscall.GUID, error)

type GattProtectionLevel

type GattProtectionLevel int32
const (
	GattProtectionLevelPlain                               GattProtectionLevel = 0
	GattProtectionLevelAuthenticationRequired              GattProtectionLevel = 1
	GattProtectionLevelEncryptionRequired                  GattProtectionLevel = 2
	GattProtectionLevelEncryptionAndAuthenticationRequired GattProtectionLevel = 3
)

type GattReadRequest

type GattReadRequest struct {
	ole.IUnknown
}

func (*GattReadRequest) AddStateChanged

func (*GattReadRequest) GetLength

func (impl *GattReadRequest) GetLength() (uint32, error)

func (*GattReadRequest) GetOffset

func (impl *GattReadRequest) GetOffset() (uint32, error)

func (*GattReadRequest) GetState

func (impl *GattReadRequest) GetState() (GattRequestState, error)

func (*GattReadRequest) RemoveStateChanged

func (impl *GattReadRequest) RemoveStateChanged(token foundation.EventRegistrationToken) error

func (*GattReadRequest) RespondWithProtocolError

func (impl *GattReadRequest) RespondWithProtocolError(protocolError uint8) error

func (*GattReadRequest) RespondWithValue

func (impl *GattReadRequest) RespondWithValue(value *streams.IBuffer) error

type GattReadRequestedEventArgs

type GattReadRequestedEventArgs struct {
	ole.IUnknown
}

func (*GattReadRequestedEventArgs) GetDeferral

func (impl *GattReadRequestedEventArgs) GetDeferral() (*foundation.Deferral, error)

func (*GattReadRequestedEventArgs) GetRequestAsync

func (impl *GattReadRequestedEventArgs) GetRequestAsync() (*foundation.IAsyncOperation, error)

func (*GattReadRequestedEventArgs) GetSession

func (impl *GattReadRequestedEventArgs) GetSession() (*GattSession, error)

type GattReadResult

type GattReadResult struct {
	ole.IUnknown
}

func (*GattReadResult) GetStatus

func (impl *GattReadResult) GetStatus() (GattCommunicationStatus, error)

func (*GattReadResult) GetValue

func (impl *GattReadResult) GetValue() (*streams.IBuffer, error)

type GattRequestState

type GattRequestState int32
const (
	GattRequestStatePending   GattRequestState = 0
	GattRequestStateCompleted GattRequestState = 1
	GattRequestStateCanceled  GattRequestState = 2
)

type GattServiceProvider

type GattServiceProvider struct {
	ole.IUnknown
}

func (*GattServiceProvider) AddAdvertisementStatusChanged

func (impl *GattServiceProvider) AddAdvertisementStatusChanged(handler *foundation.TypedEventHandler) (foundation.EventRegistrationToken, error)

func (*GattServiceProvider) GetAdvertisementStatus

func (impl *GattServiceProvider) GetAdvertisementStatus() (GattServiceProviderAdvertisementStatus, error)

func (*GattServiceProvider) GetService

func (impl *GattServiceProvider) GetService() (*GattLocalService, error)

func (*GattServiceProvider) RemoveAdvertisementStatusChanged

func (impl *GattServiceProvider) RemoveAdvertisementStatusChanged(token foundation.EventRegistrationToken) error

func (*GattServiceProvider) StartAdvertising

func (impl *GattServiceProvider) StartAdvertising() error

func (*GattServiceProvider) StartAdvertisingWithParameters

func (impl *GattServiceProvider) StartAdvertisingWithParameters(parameters *GattServiceProviderAdvertisingParameters) error

func (*GattServiceProvider) StopAdvertising

func (impl *GattServiceProvider) StopAdvertising() error

type GattServiceProviderAdvertisementStatus

type GattServiceProviderAdvertisementStatus int32
const (
	GattServiceProviderAdvertisementStatusCreated                            GattServiceProviderAdvertisementStatus = 0
	GattServiceProviderAdvertisementStatusStopped                            GattServiceProviderAdvertisementStatus = 1
	GattServiceProviderAdvertisementStatusStarted                            GattServiceProviderAdvertisementStatus = 2
	GattServiceProviderAdvertisementStatusAborted                            GattServiceProviderAdvertisementStatus = 3
	GattServiceProviderAdvertisementStatusStartedWithoutAllAdvertisementData GattServiceProviderAdvertisementStatus = 4
)

type GattServiceProviderAdvertisingParameters

type GattServiceProviderAdvertisingParameters struct {
	ole.IUnknown
}

func NewGattServiceProviderAdvertisingParameters

func NewGattServiceProviderAdvertisingParameters() (*GattServiceProviderAdvertisingParameters, error)

func (*GattServiceProviderAdvertisingParameters) GetIsConnectable

func (impl *GattServiceProviderAdvertisingParameters) GetIsConnectable() (bool, error)

func (*GattServiceProviderAdvertisingParameters) GetIsDiscoverable

func (impl *GattServiceProviderAdvertisingParameters) GetIsDiscoverable() (bool, error)

func (*GattServiceProviderAdvertisingParameters) GetServiceData

func (*GattServiceProviderAdvertisingParameters) SetIsConnectable

func (impl *GattServiceProviderAdvertisingParameters) SetIsConnectable(value bool) error

func (*GattServiceProviderAdvertisingParameters) SetIsDiscoverable

func (impl *GattServiceProviderAdvertisingParameters) SetIsDiscoverable(value bool) error

func (*GattServiceProviderAdvertisingParameters) SetServiceData

func (impl *GattServiceProviderAdvertisingParameters) SetServiceData(value *streams.IBuffer) error

type GattServiceProviderResult

type GattServiceProviderResult struct {
	ole.IUnknown
}

func (*GattServiceProviderResult) GetError

func (*GattServiceProviderResult) GetServiceProvider

func (impl *GattServiceProviderResult) GetServiceProvider() (*GattServiceProvider, error)

type GattSession

type GattSession struct {
	ole.IUnknown
}

func (*GattSession) AddMaxPduSizeChanged

func (impl *GattSession) AddMaxPduSizeChanged(handler *foundation.TypedEventHandler) (foundation.EventRegistrationToken, error)

func (*GattSession) Close

func (impl *GattSession) Close() error

func (*GattSession) GetCanMaintainConnection

func (impl *GattSession) GetCanMaintainConnection() (bool, error)

func (*GattSession) GetMaintainConnection

func (impl *GattSession) GetMaintainConnection() (bool, error)

func (*GattSession) GetMaxPduSize

func (impl *GattSession) GetMaxPduSize() (uint16, error)

func (*GattSession) RemoveMaxPduSizeChanged

func (impl *GattSession) RemoveMaxPduSizeChanged(token foundation.EventRegistrationToken) error

func (*GattSession) SetMaintainConnection

func (impl *GattSession) SetMaintainConnection(value bool) error

type GattSubscribedClient

type GattSubscribedClient struct {
	ole.IUnknown
}

func (*GattSubscribedClient) AddMaxNotificationSizeChanged

func (impl *GattSubscribedClient) AddMaxNotificationSizeChanged(handler *foundation.TypedEventHandler) (foundation.EventRegistrationToken, error)

func (*GattSubscribedClient) GetMaxNotificationSize

func (impl *GattSubscribedClient) GetMaxNotificationSize() (uint16, error)

func (*GattSubscribedClient) GetSession

func (impl *GattSubscribedClient) GetSession() (*GattSession, error)

func (*GattSubscribedClient) RemoveMaxNotificationSizeChanged

func (impl *GattSubscribedClient) RemoveMaxNotificationSizeChanged(token foundation.EventRegistrationToken) error

type GattValueChangedEventArgs

type GattValueChangedEventArgs struct {
	ole.IUnknown
}

func (*GattValueChangedEventArgs) GetCharacteristicValue

func (impl *GattValueChangedEventArgs) GetCharacteristicValue() (*streams.IBuffer, error)

func (*GattValueChangedEventArgs) GetTimestamp

func (impl *GattValueChangedEventArgs) GetTimestamp() (foundation.DateTime, error)

type GattWriteOption

type GattWriteOption int32
const (
	GattWriteOptionWriteWithResponse    GattWriteOption = 0
	GattWriteOptionWriteWithoutResponse GattWriteOption = 1
)

type GattWriteRequest

type GattWriteRequest struct {
	ole.IUnknown
}

func (*GattWriteRequest) AddStateChanged

func (*GattWriteRequest) GetOffset

func (impl *GattWriteRequest) GetOffset() (uint32, error)

func (*GattWriteRequest) GetOption

func (impl *GattWriteRequest) GetOption() (GattWriteOption, error)

func (*GattWriteRequest) GetState

func (impl *GattWriteRequest) GetState() (GattRequestState, error)

func (*GattWriteRequest) GetValue

func (impl *GattWriteRequest) GetValue() (*streams.IBuffer, error)

func (*GattWriteRequest) RemoveStateChanged

func (impl *GattWriteRequest) RemoveStateChanged(token foundation.EventRegistrationToken) error

func (*GattWriteRequest) Respond

func (impl *GattWriteRequest) Respond() error

func (*GattWriteRequest) RespondWithProtocolError

func (impl *GattWriteRequest) RespondWithProtocolError(protocolError uint8) error

type GattWriteRequestedEventArgs

type GattWriteRequestedEventArgs struct {
	ole.IUnknown
}

func (*GattWriteRequestedEventArgs) GetDeferral

func (impl *GattWriteRequestedEventArgs) GetDeferral() (*foundation.Deferral, error)

func (*GattWriteRequestedEventArgs) GetRequestAsync

func (impl *GattWriteRequestedEventArgs) GetRequestAsync() (*foundation.IAsyncOperation, error)

func (*GattWriteRequestedEventArgs) GetSession

func (impl *GattWriteRequestedEventArgs) GetSession() (*GattSession, error)

Jump to

Keyboard shortcuts

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