Each Bluetooth device has a name for identifying the device to users or applications. This document shows you how to get or set device names.
Getting the Local Device Name
The following code shows how to get the local name:
Link against the following libraries:
esock.lib bluetooth.lib sdpdatabase.lib
Connect to the socket server
Create and initialise an RHostResolver
Get the local device name
Setting the Local Device Name
Setting the device name differs only in the final step, where you will use the RHostResolver::SetHostName() function.
This tutorial set takes you through all the steps involved in setting up and communicating over a Bluetooth connection.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License v1.0.