_BT_INFO stInfo;
BT_GetLocalInfo(&stInfo);
stInfo. stInquiryTimeout = 10;
stInfo. stInquirytMaxResponse = 5;
BT_SetLocalSet(&stInfo);
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;
Kommentare zu diesen Handbüchern