Programming Manual

i480e&i480e-MD2 Programming Manual
130 / 139
Indication
AT-B BLEDATAIND [length],[data]
Parameters
length
Length of received data
data
Received data
Note
N/A
29
GATT Central AT Command Definition
29.1
BLESCAN
This command is used to start or stop scanning devices.
Command
AT+B BLESCAN [1/0]\r
Response
AT-B BLEADVIND [addr_type],[addr],[ad type]:[ad data]...\CR
Parameters
[1/0]
1: start scanning: AT+B BLESCAN 0\r
0: stop scanning: AT+B BLESCAN 1\r
addr_type
0:PUBLIC ADDR
1:RANDOM ADDR 0xFF: INVALID
addr
The address of the advertising device
ad type
2:Incomplete list of 16-bit Service Class UUIDs
3:Complete list of 16-bit Service Class UUIDs
5: Complete list of 32-bit Service Class UUIDs
7: Complete list of 128-bit Service Class UUIDs
8:Shortened local device name
9:Complete local device name.
Note
NOTE: it will only return the first 5 devices scanned, and only the
UUID and device type advertising data; Other advertising type data
and other advertising devices will not return.
Barrot Confidential