beautypg.com

L2capgroupregister, L2capgetregisteredgroups, L2capgroupregister l2capgetregisteredgroups – Teledyne LeCroy BTTracer_Trainer - BTTrainer Users Manual User Manual

Page 275

background image

257

CATC BTT

RAINER

2.11

C

HAPTER

User’s Manual

Example

result = L2CAPEchoRequest('838010AC0008', "Test");

Trace("L2CAPEchoRequest result : ", result[0], "\n");

if(result[0] == "Success")

{

Trace("Data : ", result[1], "\n");

}

L2CAPGroupRegister

L2CAPGroupRegister(PSM, list of Bluetooth addresses)

Return value

Returns a list with two values: status and GroupID

Status (element 0) is one of the following:

"Success"

"Failed"

“Invalid Parameter”

Comments

Register an L2CAP group with the specified PSM and the list of Bluetooth
addresses.

Example

PSM = 0x1001;

Addr1 = '010203040506';

Addr2 = '010203040507';

result = L2CAPGroupRegister (PSM, Addr1, Addr2);

Trace(result);

L2CAPGetRegisteredGroups

L2CAPGetRegisteredGroups()

Parameter

Meaning

Default Value

Comments

PSM

PSM of the

group

List of the Bluetooth

addresses

Parameter

Meaning

Default Value

Comments

Address