ServiceRecordBuilderFromJsr82ServerUri Method

Converts a Java JSR 82 Bluetooth server URL into a ServiceRecordBuilder instance.

Definition

Namespace: InTheHand.Net.Bluetooth.Sdp
Assembly: InTheHand.Net.Bluetooth (in InTheHand.Net.Bluetooth.dll) Version: 4.0.32+5cdf1cfd21064ea31c5de33d160200ca1c4bc218
C#
public static ServiceRecordBuilder FromJsr82ServerUri(
	string url
)

Parameters

url  String
A server-side JSR 82 URL in one of the supported forms.

Return Value

ServiceRecordBuilder
A ServiceRecordBuilder initialised with the supported components of the supplied JSR 82 URL.

Remarks

  Caution

The authenticate and encrypt and any related parameters are completely disregarded. When using with BluetoothListener you must take care to set the required security requirements on it directly.
This method is intended to read the Service Record (SDP) related items only; in particular the Service Class ID UUID and Service Name parameters. It supports only the btspp and btObex schemes and only for server-side use only. For instance
 
btspp://localhost:3B9FA89520078C303355AAA694238F08;name=FooBar
and
 
btgoep://localhost:3B9FA89520078C303355AAA694238F08
There is no suppport for e.g.
 
btl2cap://localhost:3B9FA89520078C303355AAA694238F08;name=Aserv
as the library supports only RFCOMM connections currently.

See Also