L2capwaitforconnection() – Teledyne LeCroy Merlins Wand - Users Manual User Manual
Page 262
246
CATC M
ERLIN
’
S
W
AND
2.00
C
HAPTER
C
User’s Manual
Merlin’s Wand Scripting Commands
Comments
An L2CAP connection must already be established with the device. The
pipe specified must already be set up in the Data Transfer Manager. The
pipe should not be open when L2CAPSendDataFromPipe is called.
Example
L2CAPSendDataFromPipe(0x0040, "Pipe1");
L2CAPWaitForConnection()
L2CAPWaitForConnection(Timeout)
Return value
•
“Success”
•
“Timed out”
Comments
Waits Timeout milliseconds for a device to establish an L2CAP connection
with Merlin's Wand. This function will block the specified amount of time
(or infinitely if 0 is specified) unless a connection is established.
Example
Trace("L2CAPWaitForConnection\n");
result = L2CAPWaitForConnection();
if( result == "Success")
{
#Do something else
}
Parameter
Meaning
Default Value
Comments
Timeout
Time in ms to
wait for an
incoming
L2CAP con-
nection
0 (Infinite
wait)
Use 0 as the timeout value to wait infinitely.