SDPATTR

Name

SDPATTR -- Browse SDP Records

Synopsis

SDPATTR {link_id} {handle} {attribute}

Description

The SDPATTR command is used to send a Service Attribute Request to a connected SDP server, identified with link_id. The command supports requesting for one attribute value (specified with the attribute parameter, 4 hex digits, or a keyword) in one (previously retrieved) service entry (specified with the handle parameter, 8 hex digits), but several requests can be sent during the same SDP connection. However, you must wait for the reply to the previous reply before issuing new SDPATTR command.

The reply contains the response from the SDP server in encoded form. The code characters are described in Table 6-1.

Table 6-1. SDP Response Formatting Characters

CharDescription
IUnsigned integer (2, 4, or 8 hexadecimal digits) follows. Often handle, attribute, or attribute value. Attribute values are shown as text if BLUETOOTH READABLE is set to 1.
ISigned integer byte (2 hexadecimal digits) follows.
UUUID (4 or 8 hexadecimal digits) follows. Shown as text if BLUETOOTH READABLE is set to 1.
SString follows.
BBoolean follows.
<Start of sequence.
>End of sequence.
AAlternative follows.
RUniversal Resource Locator follows.

Reply

SDPATTR link_id info

Example


          READY.
          CALL 00:07:80:80:bf:01 SDP
          CALL 0
          CONNECT 0 SDP
          SDPSEARCH 0 LAN
          SDPSEARCH 0 1
          SDPSEARCH 0 00010000
          SDPATTR 0 00010000 DESCLIST
          SDPATTR 0 < I 0004 < < U 0100 > < U 0003 I 04 > > >
          CLOSE 0
          NO CARRIER 0 ERROR 000