D T 5 0 - M C O M M A N D R E F E R E N C E G U I D E 1 . 1 P a g e
20 | 38
Response
Description
+UDDRP:<peer_id>,<url>,
<connect_scheme>
Successful read response.
OK
Successful write response.
ERROR
Error response.
Parameter
Description
peer_id
The peer ID can be 0-6.
url
URL to the service on the remote peer. See Connect
Peer +UDCP for more details and examples of valid
URLs. Writing an empty url "" will reset the
connect_scheme.
connect_scheme
This parameter is a bit field. At least one bit needs to
be set. Bit 0 is the least significant bit. Each bit is
defined as shown below:
• Bit 0: Reserved. Do not use.
• Bit 1: Always connected
- Keep the peer connected
when not in command mode.
That is, on errors and remote disconnect, the peer
will automatically try to reconnect. The reconnect
timeout interval can optionally be selected by setting
the parameter "ac-to" to the query string; Example:
"spp://0012f3000001/?ac-to=10000,2"
• Bit 2: External connect
- Trigger connection to peer
on external signal connect event. The connect event
is generated when the signal SWITCH_0 is kept low
for at least 200 ms but not more than 1000 ms while
the device is in the data mode.
7.1.5 Peer list +UDLP
AT Command
Description
AT+UDLP?
This command reads the connected peers (peer
handle).
Response
Description
+UDLP:<peer_handle>,<protocol>,
<local_address>,<remote_address>
OK
Successful read response.
ERROR
Error response.
Parameter
Description
peer_handle
The peer handle identifies the connection.
protocol
Protocol of the connection.
local_address
Local address.