CipherLab 9400 Series User Manual page 174

Hide thumbs Also See for 9400 Series:
Table of Contents

Advertisement

9400 .NET Programming
SetBTConnStatus
Purpose
To set Bluetooth connection.
Syntax
int SetBTConnStatus (int serviceType,
Parameters
serviceType
[in] A value that defines which Bluetooth service is desired.
connStatus
[in] A value that defines whether to establish a connection using the specified
Bluetooth service.
devInfo
[in] A value returned by FindNextBTDevice().
serviceInfo
[in] A value returned by FindService().
Example for C#
int b1 = 0;
b1 = Cipherlab.SystemAPI.Member.SetBTConnStatus(
1, 1, deviceInfo, serviceInfo);
Example for VB
Cipherlab.SystemAPI.Member.SetBTConnStatus(
1, 1, deviceInfo, serviceInfo)
Return Value
If successful, it returns 1.
Otherwise, it returns 0.
166
Guide
1
BT_HID_SERVICE
2
BT_DUN_SERVICE
3
BT_SPP_SERVICE
4
BT_OPP_SERVICE
5
BT_PAN_SERVICE
6
BT_HEADSET_SERVICE
7
BT_HANDSFREE_SERVICE
8
BT_FTP_SERVICE
0
Disconnect with the target Bluetooth device
1
Connect with the target Bluetooth device
Call GetErrorCode() to find the error condition encountered:
21
ERROR_NO_DEVICE_INFO
22
ERROR_NO_SERVICE_INFO
25
ERROR_NOT_DEVICEINFO_OBJ
26
ERROR_NOT_SERVICEINFO_OBJ
int onOff,
int deviceInfo,
int serviceInfo);
COM 8 will be in use.
COM 8 will be in use.

Advertisement

Table of Contents
loading

Table of Contents