Users Manual Instruction Manual

207
CATC BTTRAINER 2.11 CHAPTER
Users Manual
HCISwitchRole
HCISwitchRole(Address, Role)
Return value
“Success”
“Failure”
“Failed: Device not found”
“Not connected”
“Invalid parameter”
Comments
Switches the current role of the device in the piconet.
Example
Device = '010203040506';
result = HCISwitchRole(Device, "Slave");
Trace("HCISwitchRole result is: ", result, "\n\n");
HCIWaitForMaxSlotRequest
HCIWaitForMaxSlotRequest(Address,Time)
Comment:
This command will wait for event HCI_CatcMaxSlotRequestEvent or
times out. This is a script only command.
Parameter Meaning Default Value Comments
Address Bluetooth
address of
device in
question
Role Values: “Master”, “Slave”
Parameter Meaning Default Value Comments
BD_ADDR
6 bytes
0
Timeout
2 Bytes
In ms