sdptool setattr
Hi all,
Anyone can tell me how i add a attribute in my sdp record with a boolean value.
i'm trying to add the 0x0302 attr_id(Remote audio volume control) with the attr_value set as boolean True. I have done:
[root@olivia libs]# sdptool setattr 0x804f778 0x0302 True Adding attrib 0x302 string "True" to record 0x804F778
[root@olivia libs]# sdptool get --tree 0x804f778 Attribute Identifier : 0x0 - ServiceRecordHandle
Integer : 0x804f778
Attribute Identifier : 0x1 - ServiceClassIDList
Data Sequence
UUID16 : 0x1108 - Headset
UUID16 : 0x1203 - GenericAudio
Attribute Identifier : 0x4 - ProtocolDescriptorList
Data Sequence
Data Sequence
UUID16 : 0x0100 - L2CAP
Data Sequence
UUID16 : 0x0003 - RFCOMM
Channel/Port (Integer) : 0xcAttribute Identifier : 0x5 - BrowseGroupList
Data Sequence
UUID16 : 0x1002 - PublicBrowseGroup (SDP)
Attribute Identifier : 0x9 - BluetoothProfileDescriptorList
Data Sequence
Data Sequence
UUID16 : 0x1108 - Headset
Version (Integer) : 0x100Attribute Identifier : 0x100
Text : "Headset"
Attribute Identifier : 0x302 - Remote audio volume control
Text : "True"
but as you can see the attr_value is set in the test format.
Thanks in advance,
Jo�o Santos
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Marcel Holtmann
maintainerHi Joao,
Quoted 4 lines
Anyone can tell me how i add a attribute in my sdp record with a boolean value.
i'm trying to add the0x0302attr_id(Remote audio volume control)with theattr_valueset as boolean True.
it is not possible, because setattr only supports UUID16, UINT32 and STR8. You must fix the add_headset() function of sdptool or extend the set_attrib() routine to recognize boolean input.
Regards
Marcel
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users