Users Manual Instruction Manual

211
CATC BTTRAINER 2.11 CHAPTER
Users Manual
HCIWriteEncryptionMode
HCIWriteEncryptionMode(EncryptionMode)
Return value
“Success”
“Failure”
“Invalid parameter”
Comments
Controls whether the local device requires encryption to the remote device
at connection setup.
Example
result = HCIWriteEncryptionMode(0);
HCIWriteLinkPolicySettings
HCIWriteLinkPolicySettings(Address, LinkPolicySettings)
Parameter Meaning Default Value Comments
Encryption
Mode
Encryption
mode:
0 = Encryp-
tion disabled;
1 = Encryp-
tion enabled
for
point-to-point
packets only;
2 = Encryp-
tion enabled
for both
point-to-point
and broadcast
packets;
3-255=Reserv
ed
0
Parameter Meaning Default Value Comments
Address Bluetooth
address of
device in
question
LinkPolicy
Settings
Range is 0x0000-0x8000.