Argox PA-20 Programming Guide Manuel d'utilisateur Page 37

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 130
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 36
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.
BT_SetLocalSet
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;
Vue de la page 36
1 2 ... 32 33 34 35 36 37 38 39 40 41 42 ... 129 130

Commentaires sur ces manuels

Pas de commentaire