Bt_setlocalset – Argox PA-20 Programming Guide User Manual
Page 37

PT-20 Programming Guide
35
char assPinCode[20];
//Set PIN code.
}_BT_INFO;
Returns: BT_NOMODULE : The terminal is notPA-2010 / PA-2110.
BT_OK : Get information OK.
Purpose: Set Bluetooth information.
Syntax: int BT_SetLocalSet(_BT_INFO* stSet);
Example call: _BT_INFO stInfo;
BT_GetLocalInfo(&stInfo);
stInfo. stInquiryTimeout = 10;
stInfo. stInquirytMaxResponse = 5;
BT_SetLocalSet(&stInfo);
Includes:
#include “SDK.h ”
Description: This function can help you to set our Bluetooth module parameters.
The structure describe as follows:
typedef struct __BT_INFO
{
char assLocalAddress[16]; //PA-2010 / PA-2110 Bluetooth MAC
address.(Cannot change.)
char assLocalName[20];
//PA-2010 / PA-2110 Bluetooth device
name
BOOL bLocalSecurity;
//PA-2010 / PA-2110 Bluetooth
security mode, set TRUE(on) or
FALSE(off)
BOOL bLocalEncryption;
//PA-2010 / PA-2110 Bluetooth
encryption mode, set TRUE(on) or
FALSE(off)
int stInquiryTimeout;
//PA-2010 / PA-2110 Bluetooth inquiry
timeout set, the value from 1(1.28
seconds) to 48(61.44 seconds).
int stInquirytMaxResponse; //PA-2010 / PA-2110 Bluetooth inquiry
max response, the value from 1 to 9.
char assLinkAddress[16]; //Set link device address.
char assPinCode[20];
//Set PIN code.
}_BT_INFO;