* Demo Application, demonstrating the use of BluetoothTCPClient to provide services.
* @author Christian Lorenz
*/
public class BluetoothServiceProvider {
public static final void main(String[] args) throws Exception {
BluetoothStack.init(new BluetoothTCPClient("192.168.10.2", 2600));
LocalDevice localDev = LocalDevice.getLocalDevice();
localDev.setDiscoverable(DiscoveryAgent.GIAC);
L2CAPConnectionNotifier connNotifier = (L2CAPConnectionNotifier)Connector.open("btl2cap://localhost:3;");
ServiceRecord serviceRecord = connNotifier.getRecord();
serviceRecord.setAttributeValue(256, new DataElement(DataElement.STRING, "Tini Demo Service"));