L2capreceivedata(), L2capinforequest(), L2capreceivedata() l2capinforequest() – Teledyne LeCroy Merlins Wand - Users Manual User Manual
Page 259
243
CATC M
ERLIN
’
S
W
AND
2.00
C
HAPTER
C
User’s Manual
Merlin’s Wand Scripting Commands
L2CAPReceiveData()
L2CAPReceiveData(Timeout)
Return value
Returns a list with the following values: [status, number_of_bytes,
data_array]
Status (element 0) is one of the following:
•
"Success"
•
"Timed out"
•
"Not connected"
Comments
This command sets the Timeout that Merlin’s Wand will wait in millisec-
onds for incoming L2CAP data. This function will block the specified
amount of time (or infinitely if 0 is specified) unless data is received.
Example
result = L2CAPReceiveData();
Trace("L2CAPReceiveData:", result,"\n");
L2CAPInfoRequest()
L2CAPInfoRequest(Address)
Return values
Returns a list with three values: status, number of bytes, and data.
Status (element 0) is one of the following:
•
“Success”
•
“Failure”
•
“Not found”
Parameter
Meaning
Default Value
Comments
Timeout
Time in ms to
wait for an
incoming
L2CAP data
0 (Infinite
wait)
Use 0 as the timeout value to wait infinitely
Parameter
Meaning
Default Value
Comments
Address
Bluetooth
address of the
remote device