Argox PA-20 Programming Guide Manual do Utilizador Página 35

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 130
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 34
PT-20 Programming Guide
33
BT_CONNECT : Bluetooth has connected, please run BT_Close.
BT_OK : Bluetooth connect ok.
BT_Close
Purpose
Bluetooth disconnect.
Syntax
int BT_Close(void);
Example call
BT_Close();
Includes
#include “SDK.h ”
Description
This function can disconnect Bluetooth. If you want to disconnect, you
can use BT_Stop(Bluetooth module power off) or this function.
Returns
BT_NOMODULE : The terminal is notPA-2010 / PA-2110.
BT_NOSTART : Bluetooth module power disable, please run BT_Start.
BT_OK : Bluetooth disconnect ok.
BT_Read
Purpose
Read characters from Bluetooth module.
Syntax
int BT_Read(char* pssBuf, int slReadSize, int* pslGetSize);
Example call
int slGetSize;
char assBuf[20];
BT_Read(assBuf, 10, &slGetSize);
Includes
#include “SDK.h ”
Description
If Bluetooth is connected, this function can read characters from
Bluetooth module.The parameter “slReadSize” can set how many
characters you will read, and the parameter “pslGetSize” will tell you how
many characters you read.
Returns
BT_NOMODULE : The terminal is notPA-2010 / PA-2110.
BT_NOSTART : Bluetooth module power disable, please run BT_Start.
BT_DISCONNECT : Bluetooth not connect to other bluetooth device,
please run BT_Open.
BT_ERROR : Parameter error, please check your parmeter.
BT_OK :Read OK.
BT_Write
Purpose
Write characters to Bluetooth module.
Syntax
int BT_Write(char* pssBuf, int slWriteSize, int* pslPutSize);
Example call
int slWriteSize;
char assBuf[20] = “1234567890”;
BT_Write(assBuf, 10, & slWriteSize);
Includes
#include “SDK.h ”
Description
If Bluetooth is connected, this function can wriet characters to other
Bluetooth device.The parameter “slWriteSize” tell the function how many
Vista de página 34
1 2 ... 30 31 32 33 34 35 36 37 38 39 40 ... 129 130

Comentários a estes Manuais

Sem comentários