linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bluez-users] problem adding 1284 ID SDP attribute
@ 2005-12-12  9:26 Arch Sayo
  2005-12-12  9:34 ` oj ravadilla
  2005-12-12  9:34 ` Marcel Holtmann
  0 siblings, 2 replies; 6+ messages in thread
From: Arch Sayo @ 2005-12-12  9:26 UTC (permalink / raw)
  To: bluez-users

[-- Attachment #1: Type: text/plain, Size: 832 bytes --]

Hi Marcel,
   
  I am having a problem adding the 1284ID attribute. The 1284ID is of type String. (So I use SDP_TEXT_STR8) However, the first 2 characters of this string are to be interpreted as a 2-byte length field. The length of my string is 80 which is 0x0050 in HEXADECIMAL. So when I add it as a string, the SDP function interprets the 1st byte as a null terminator and sends an empty string.
   
  I tried increasing the length of my string to 0x0101 to avoid a 0x00 byte. However, this cannot be done since the maximum length for an SDP_TEXT_STR8 is only 255 which is 0x00FF.
   
  In this case, how will I be able to add a 1284ID string attribute whose length field contains a 0x00 byte?
   
  Thanks,
  Arch Sayo

			
---------------------------------
Yahoo! Shopping
 Find Great Deals on Holiday Gifts at Yahoo! Shopping 

[-- Attachment #2: Type: text/html, Size: 1116 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-12-13  5:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-12  9:26 [Bluez-users] problem adding 1284 ID SDP attribute Arch Sayo
2005-12-12  9:34 ` oj ravadilla
2005-12-13  2:01   ` oj ravadilla
2005-12-13  2:59     ` oj ravadilla
2005-12-13  5:35     ` Marcel Holtmann
2005-12-12  9:34 ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).