iocp (v1.1.0)

::iocp::bt::namesTop, Main, Index

Most objects in Bluetooth services are identified using UUIDs or in some cases numeric identifiers. The iocp::bt::names namespace contains utility commands to map these to human readable names.

Commandsnames, Top, Main, Index

attribute_id [::iocp::bt::names]names, Top, Main, Index

Maps a attribute name to it numeric attribute identifier.

attribute_id name
Parameters
nameAttribute name to be mapped.
Description

The command will raise an error if the name is unknown.

Return value

Returns the numeric attribute identifier corresponding to the passed name.

attribute_name [::iocp::bt::names]names, Top, Main, Index

Maps a attribute id (numeric or name) to a attribute name.

attribute_name attr_id
Parameters
attr_idNumeric attribute identifier.
Return value

Returns a human-readable name for the attribute or the numeric id itself if no mapping could be performed.

is_uuid [::iocp::bt::names]names, Top, Main, Index

is_uuid uuid
Parameters
uuidNot documented.

print [::iocp::bt::names]names, Top, Main, Index

Prints known UUID's and their mapped mnemonics.

print

profile_name [::iocp::bt::names]names, Top, Main, Index

Maps a UUID to a Bluetooth profile name.

profile_name uuid
Parameters
uuidUUID to be mapped.
Return value

Returns a human-readable name or the UUID itself if no mapping could be performed.

protocol_name [::iocp::bt::names]names, Top, Main, Index

Maps a UUID to a protocol name.

protocol_name uuid
Parameters
uuidUUID to be mapped.
Return value

Returns a human-readable name or the UUID itself if no mapping could be performed.

protocol_uuid [::iocp::bt::names]names, Top, Main, Index

Maps a protocol name to a UUID.

protocol_uuid name
Parameters
nameProtocol name to be mapped.
Description

The command raises an error if the name could not be mapped to a UUID.

Return value

Returns the UUID corresponding to the name.

service_class_name [::iocp::bt::names]names, Top, Main, Index

Maps a UUID to a service class name.

service_class_name uuid
Parameters
uuidUUID to be mapped.
Return value

Returns a human-readable name or the UUID itself if no mapping could be performed.

service_class_uuid [::iocp::bt::names]names, Top, Main, Index

Maps a service class name to a UUID.

service_class_uuid name
Parameters
nameService class name to be mapped.
Description

The command raises an error if the name could not be mapped to a UUID.

Return value

Returns the UUID corresponding to the name.

to_name [::iocp::bt::names]names, Top, Main, Index

Map a UUID to a name.

to_name uuid
Parameters
uuidBluetooth UUID.
Description

The command attempts to map the UUID as a service name or protocol name in that order.

Return value

Returns the mapped name or the uuid if no mapping is possible.

to_uuid [::iocp::bt::names]names, Top, Main, Index

Map a name to a UUID.

to_uuid name_or_uuid
Parameters
name_or_uuidBluetooth UUID or name.
Description

The command attempts to map the name as a service class name or protocol name in that order.

Return value

Returns the mapped uuid raises an error if no mapping is possible.