Argox PA-20 Programming Guide Uživatelský manuál Strana 34

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 130
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 33
PT-20 Programming Guide
32
Bluetooth(For PA-2010 / PA-2110)
These functions only for PA-2010 / PA-2110, and our Bluetooth module only
support SPP mode(Serial Port Profile).
BT_Start
Purpose
Bluetooth module power enable.
Syntax
int BT_Start(void);
Example call
BT_Start();
Includes
#include “SDK.h ”
Description
This function can enable Bluetooth module power. After use this function,
the left led will flash blue light.If you want to use other Bluetooth function,
you must run this function first.
Returns
BT_NOMODULE : The terminal is notPA-2010 / PA-2110.
BT_START : Bluetooth module has been power enable, please run
BT_Stop.
BT_OK : Bluetooth module power enable.
BT_Stop
Purpose
Bluetooth module power disable.
Syntax
int BT_Stop(void);
Example call
BT_Stop();
Includes
#include “SDK.h ”
Description
This function can disable Bluetooth module power. Each Bluetooth
function will return “BT_NOSTART” after use this function, and the left led
will stop flashing.
Returns
BT_NOMODULE : The terminal is notPA-2010 / PA-2110.
BT_NOSTART : Bluetooth module power disable, please run BT_Start.
BT_OK : Bluetooth module power disable.
BT_Open
Purpose
Bluetooth connect.
Syntax
int BT_Open(void);
Example call
BT_Open();
Includes
#include “SDK.h ”
Description
This function can connect to other Bluetooth device.Befor use this
function, you have to set the target Bluetooth MAC address by using
“BT_SetLocalSet” function.
Returns
BT_NOMODULE : The terminal is notPA-2010 / PA-2110.
BT_NOSTART : Bluetooth module power disable, please run BT_Start.
Zobrazit stránku 33
1 2 ... 29 30 31 32 33 34 35 36 37 38 39 ... 129 130

Komentáře k této Příručce

Žádné komentáře