XtGem Forum catalog

Command Write Configure - BLUETOOTH

<Header> +

<Payload_length>

<Payload>

PL0

PL1

PL2

PL3

PL4

PL5

$ESP_OK|xx|

‘W’

‘k’

Infor 1

Infor 2

Infor 3

Infor 4

...

 

Name CFG : BLUETOOTH

Number of field values : 3

 

Payload

Index

Type value

Min

Value

Max

Value

Default

Value

Min Length

Max Length

Describe

Unit

PL2

INTEGER

0

1

0

-

-

Type Bluetooth

 

PL3

PRINT

-

-

BTU-ESPrtk : [ID]

1

100

Bluetooth Classic Name

 

PL4

PRINT

-

-

BLE-ESPrtk : [ID]

1

100

Bluetooth BLE Name

 

 

 

PL0

PL1

PL2

Type Bluetooth

Unit

‘W’

‘k’

0

Bluetooth Classic - BTU

 

 

 

1

Bluetooth Low Energy - BLE

 

 

 

ESPrtk Respond

Payload

Index

 

Type value

Min

Value

Max

Value

Min Length

Max Length

Describe

Unit

PL2

‘k’

STRING

-

-

1

1

ID Configure : BLUETOOTH

 

 

PL3

INTEGER

0

1

-

-

Status Configure

 

0

Error: Failed to save , please try again

1

OK : Saved configure success

 

PL4

STRING

-

-

-

-

Describe Status Configure in text string format

 

 

Example

Message :

HOST Send

$ESP_OK|56|W|k|0|BTU-ESPrtk : 81909_GHB9A|BLE-ESPrtk : 81909_GHB9A|*6632

ACK Respond

$ESP_OK|43|W|k|1|( ID : BLUETOOTH ) : Saved Success .|*6556

NACK Respond

$ESP_ER|… or $ESS_ER|… or $AES_ER|…

 

 

Command Read configure - BLUETOOTH

ESPrtk Respond

The index / range of values / data types is similar to the index / range of values / data types of payloads when configured.

Example

Message :

HOST Send

$ESP_OK|5|R|k||*6D37

ACK Respond

$ESP_OK|56|R|k|0|BTU-ESPrtk : 81909_GHB9A|BLE-ESPrtk : 81909_GHB9A|*6332

NACK Respond

$ESP_ER|… or $ESS_ER|… or $AES_ER|…