CipherLab 9400 Series User Manual page 168

Hide thumbs Also See for 9400 Series:
Table of Contents

Advertisement

9400 .NET Programming
StartPairing
Purpose
To pair with a spcified Bluetooth device.
Syntax
int StartPairing (int devInfo,
Parameters
devInfo
[in] A value returned by FindNextBTDevice().
pinCode
[in] A string variable that stores the PIN code.
Example for C#
int b1 = 0;
string pinCode = "1234";
b1 = Cipherlab.SystemAPI.Member.StartPairing(devInfo, pinCode);
Example for VB
Dim devInfo As Integer
Dim pinCode As String = "1234"
Cipherlab.SystemAPI.Member. StartPairing(devInfo, pinCode)
Return Value
If successful, it returns 1.
Otherwise, it returns 0.
See Also
FindNextBTDevice
160
Guide
string pinCode);
Call GetErrorCode() to find the error condition encountered:
4
ERROR_PARAMETER
21
ERROR_NO_DEVICE_INFO
25
ERROR_NOT_DEVICEINFO_OBJ
32
ERROR_OPERATION_FAIL

Advertisement

Table of Contents
loading

Table of Contents