L2capechorequest() – Teledyne LeCroy BPT - References Manual User Manual

Page 44

Advertising
background image

40

CATC S

CRIPTING

L

ANGUAGE

1.1

C

HAPTER

11

Reference Manual

BPT Primitives

“Failure”

“Already connected”

Comments

Waits for an incoming ACL connection from a specified device for a specified time.

Example

result = WaitForConnect( Address );

L2CAPEchoRequest()

L2CAPEchoRequest( Address, EchoData )

Return value

“Success”, EchoData

“Failure”

“Not connected”

“Invalid parameter”

Comments

Sends an Echo Request to the L2CAP protocol on the specified remote device.

Example

Result = L2CAPEchoRequest( Address, "Maximum
bogosity" );

if( Result[ 0 ] == "Success" )
{

MessageBox( Result[ 1 ], "Echo request result" );

}

Parameter

Meaning

Default Value

Comments

Address

Bluetooth

address of

device to

request echo

data from

EchoData

Test data

string

String should not exceed 44 characters

Advertising