fuchsia.bluetooth.gatt

PROTOCOLS

RemoteService

Defined in fuchsia.bluetooth.gatt/client.fidl

DiscoverCharacteristics

Request

NameType

Response

NameType
status fuchsia.bluetooth/Status
characteristics vector<Characteristic>

ReadCharacteristic

Request

NameType
id uint64

Response

NameType
status fuchsia.bluetooth/Status
value vector<uint8>

ReadLongCharacteristic

Request

NameType
id uint64
offset uint16
max_bytes uint16

Response

NameType
status fuchsia.bluetooth/Status
value vector<uint8>[512]

WriteCharacteristic

Request

NameType
id uint64
value vector<uint8>

Response

NameType
status fuchsia.bluetooth/Status

WriteLongCharacteristic

Request

NameType
id uint64
offset uint16
value vector<uint8>[512]

Response

NameType
status fuchsia.bluetooth/Status

WriteCharacteristicWithoutResponse

Request

NameType
id uint64
value vector<uint8>

ReadDescriptor

Request

NameType
id uint64

Response

NameType
status fuchsia.bluetooth/Status
value vector<uint8>

ReadLongDescriptor

Request

NameType
id uint64
offset uint16
max_bytes uint16

Response

NameType
status fuchsia.bluetooth/Status
value vector<uint8>

WriteDescriptor

Request

NameType
id uint64
value vector<uint8>

Response

NameType
status fuchsia.bluetooth/Status

WriteLongDescriptor

Request

NameType
id uint64
offset uint16
value vector<uint8>[512]

Response

NameType
status fuchsia.bluetooth/Status

NotifyCharacteristic

Request

NameType
id uint64
enable bool

Response

NameType
status fuchsia.bluetooth/Status

OnCharacteristicValueUpdated

Response

NameType
id uint64
value vector<uint8>

Client

Defined in fuchsia.bluetooth.gatt/client.fidl

ListServices

Request

NameType
uuids vector<string>?

Response

NameType
status fuchsia.bluetooth/Status
services vector<ServiceInfo>

ConnectToService

Request

NameType
id uint64
service request<RemoteService>

LocalServiceDelegate

Defined in fuchsia.bluetooth.gatt/server.fidl

OnCharacteristicConfiguration

Request

NameType
characteristic_id uint64
peer_id string
notify bool
indicate bool

OnReadValue

Request

NameType
id uint64
offset int32

Response

NameType
value vector<uint8>?
status ErrorCode

OnWriteValue

Request

NameType
id uint64
offset uint16
value vector<uint8>

Response

NameType
status ErrorCode

OnWriteWithoutResponse

Request

NameType
id uint64
offset uint16
value vector<uint8>

LocalService

Defined in fuchsia.bluetooth.gatt/server.fidl

RemoveService

Request

NameType

NotifyValue

Request

NameType
characteristic_id uint64
peer_id string
value vector<uint8>
confirm bool

Server

Defined in fuchsia.bluetooth.gatt/server.fidl

PublishService

Request

NameType
info ServiceInfo
delegate LocalServiceDelegate
service request<LocalService>

Response

NameType
status fuchsia.bluetooth/Status

STRUCTS

SecurityRequirements

Defined in fuchsia.bluetooth.gatt/types.fidl

NameTypeDescriptionDefault
encryption_required bool No default
authentication_required bool No default
authorization_required bool No default

AttributePermissions

Defined in fuchsia.bluetooth.gatt/types.fidl

NameTypeDescriptionDefault
read SecurityRequirements? No default
write SecurityRequirements? No default
update SecurityRequirements? No default

ServiceInfo

Defined in fuchsia.bluetooth.gatt/types.fidl

NameTypeDescriptionDefault
id uint64 No default
primary bool No default
type string No default
characteristics vector<Characteristic>? No default
includes vector<uint64>? No default

Characteristic

Defined in fuchsia.bluetooth.gatt/types.fidl

NameTypeDescriptionDefault
id uint64 No default
type string No default
properties uint32 No default
permissions AttributePermissions? No default
descriptors vector<Descriptor>? No default

Descriptor

Defined in fuchsia.bluetooth.gatt/types.fidl

NameTypeDescriptionDefault
id uint64 No default
type string No default
permissions AttributePermissions? No default

ENUMS

ErrorCode

Type: uint32

Defined in fuchsia.bluetooth.gatt/types.fidl

NameValueDescription
NO_ERROR 0
INVALID_OFFSET 1
INVALID_VALUE_LENGTH 2
NOT_PERMITTED 3

CONSTANTS

NameValueType
MAX_VALUE_LENGTH 512 uint16
kPropertyBroadcast 1 uint32
kPropertyRead 2 uint32
kPropertyWriteWithoutResponse 4 uint32
kPropertyWrite 8 uint32
kPropertyNotify 16 uint32
kPropertyIndicate 32 uint32
kPropertyAuthenticatedSignedWrites 64 uint32
kPropertyReliableWrite 256 uint32
kPropertyWritableAuxiliaries 512 uint32