::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.
CommandsTop, Main, Index
attribute_id [::iocp::bt::names]Top, Main, Index
Maps a attribute name to it numeric attribute identifier.
Parameters
name | Attribute 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]Top, Main, Index
Maps a attribute id (numeric or name) to a attribute name.
Parameters
attr_id | Numeric 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]Top, Main, Index
Parameters
uuid | Not documented. |
print [::iocp::bt::names]Top, Main, Index
Prints known UUID's and their mapped mnemonics.
profile_name [::iocp::bt::names]Top, Main, Index
Maps a UUID to a Bluetooth profile name.
Parameters
uuid | UUID 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]Top, Main, Index
Maps a UUID to a protocol name.
Parameters
uuid | UUID 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]Top, Main, Index
Maps a protocol name to a UUID.
Parameters
name | Protocol 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]Top, Main, Index
Maps a UUID to a service class name.
Parameters
uuid | UUID 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]Top, Main, Index
Maps a service class name to a UUID.
Parameters
name | Service 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]Top, Main, Index
Map a UUID to a name.
Parameters
uuid | Bluetooth 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]Top, Main, Index
Map a name to a UUID.
Parameters
name_or_uuid | Bluetooth 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.