Bluetooth(for pa-2010 / pa-2110), Bluetooth(forpa-2010, Pa-2110) – Argox PA-20 Programming Guide User Manual

Page 34: Bt_start, Bt_stop, Bt_open

Advertising
background image

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.

Advertising