Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can use my <a href="http://32feet.codeplex.com/" rel="nofollow">32feet.NET</a> library. There's no UI for this but there's library code which could be easily used for this. Use class ServiceRecordBuilder. Some docs at <a href="http://32feet.codeplex.com/wikipage?title=Creating%20Records" rel="nofollow">Creating Records</a>. For example:</p> <pre class="lang-c# prettyprint-override"><code>ServiceRecordBuilder bldr = new ServiceRecordBuilder(); bldr.AddServiceClass(BluetoothService.SerialPort); bldr.ServiceName = "Alan's SPP service"; bldr.AddBluetoothProfileDescriptor(BluetoothService.AVRemoteControl, 1, 0); bldr.AddCustomAttribute(new ServiceAttribute(0x8001, ServiceElement.CreateNumericalServiceElement(ElementType.UInt16, 0xFEDC))); // ServiceRecord record = bldr.ServiceRecord; // var txt = ServiceRecordUtilities.Dump(record); Console.WriteLine(txt); // var byteArr = record.ToByteArray(); var txtBA = BitConverter.ToString(byteArr); Console.WriteLine(txtBA); </code></pre> <p>Output is:</p> <pre><code>ElementSequence ElementSequence Uuid16: 0x100 -- L2CapProtocol ElementSequence Uuid16: 0x3 -- RFCommProtocol UInt8: 0x0 ( ( L2Cap ), ( Rfcomm, ChannelNumber=0 ) ) AttrId: 0x0006 -- LanguageBaseAttributeIdList ElementSequence UInt16: 0x656E UInt16: 0x6A UInt16: 0x100 AttrId: 0x0009 -- BluetoothProfileDescriptorList ElementSequence ElementSequence Uuid16: 0x110E -- AVRemoteControl UInt16: 0x100 AttrId: 0x0100 -- ServiceName TextString: [en] 'Alan's SPP service' AttrId: 0x8001 UInt16: 0xFEDC </code></pre> <p>array:</p> <pre><code>35-51-09-00-01-35-03-19-11-01-09-00-04-35-0C-35-03-19-01-00-35-05-19-00-03-08-00-09-00-06-35-09-09-65-6E-09-00-6A-09-01-00-09-00-09-35-08-35-06-19-11-0E-09-01-00-09-01-00-25-12-41-6C-61-6E-27-73-20-53-50-50-20-73-65-72-76-69-63-65-09-80-01-09-FE-DC </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload