Bt_inquiry, Bt_disconnectalert – Argox PA-20 Programming Guide User Manual

Page 38

Advertising
background image

PT-20 Programming Guide

36

Returns: BT_NOMODULE : The terminal is notPA-2010 / PA-2110.

BT_NOSTART : Bluetooth module power disable, please run BT_Start.

BT_CONNECT : Bluetooth has connected, please run BT_Close.

BT_ERROR : Parameter error, please check your parmeter.

BT_TIMEOUT : Set fail, please Set again.

BT_OK : Set OK.

BT_Inquiry

Purpose: Inquiry other Bluetooth module forPA-2010 / PA-2110 to connect.

Syntax: int BT_Inquiry(_BT_DEVINFO* stBT_DevInfo, BOOL bGetDevName);

Example call: _BT_DEVINFO stBT_DevInfo;

BT_Inquiry(&stBT_DevInfo, TRUE);

Includes:

#include “SDK.h ”

Description: This function can search other Bluetooth device forPA-2010 / PA-2110 to

connect, the struct “stBT_DevInfo” will return how many device are found

and these devices MAC address. The parameter “bGetDevName” will tell

the “BT_Inquiry” function that will return device name or not.If

bGetDevName is “TRUE”, then “BT_Inquiry” will return device name in

struct “stBT_DevInfo”.

Returns: BT_NOMODULE : The terminal is notPA-2010 / PA-2110.

BT_NOSTART : Bluetooth module power disable, please run BT_Start.

BT_CONNECT : Bluetooth has connected, please run BT_Close.

BT_TIMEOUT : Search fail, please search again.

BT_OK :Search OK.

BT_DisConnectAlert

Purpose: For bluetooth disconnect alert.

Syntax: Void BT_DisConnectAlert(BOOL bBeep, int slTimeGap);

Example call: BT_DisConnectAlert(TRUE, 0);//Only beep one time for disconnect.

Includes:

#include “SDK.h ”

Description: This function can prompt you that bluetooth disconnect after connect.

If bBeep is TRUE, the buzzer will sound for disconnect after connect,

else, the buzzer will do nothing for disconnect after connect.

And, if bBeep is TRUE, the slTimeGap will be set for buzzer sound time

gap. For example, if slTimeGap is 2, the buzzer will sound for each 2

seconds.

Returns: None.

Advertising