MOVERIO Pro Developer's Guide (Rev.1.4)
155
8.8.24.
BluetoothLeGapCallback.onScanResult
Function
Provide an interface for the callback function to receive scan results (Advertise data).
Use format -2 to acquire the scan response and the advertise type.
Related API: startScan/stopScan
Format -1
Format -2
Parameter
Model name
Explanation
AddrType addrType
Remote BD address classification
String addr
Remote BD address
int rssi
Received radio wave strength (dBm)
boolean scan_rsp
Scan response data
true: Received PDU is SCAN_RSP
false: Received PDU is anything except for SCAN_RSP
AdvType adv_type
Advertise type
AdvType.ADV_IND
AdvType.ADV_DIRECT_IND
AdvType.ADV_SCAN_IND
AdvType.ADV_NONCONN_IND
AdvType.SCAN_RSP
AdvType.UNKNOWN
byte[] adv_data
Advertise data (31octet)
void onScanResult(AddrType addrType, String addr, int rssi, byte[] adv_data);
void onScanResult(AddrType addrType, String addr, int rssi, boolean scan_rsp,
AdvType adv_type, byte[] adv_data);
Summary of Contents for Moverio Pro BT-2000
Page 7: ...MOVERIO Pro Developer s Guide Rev 1 4 1 1 Introduction ...
Page 12: ...MOVERIO Pro Developer s Guide Rev 1 4 6 2 Developing Apps ...
Page 30: ...MOVERIO Pro Developer s Guide Rev 1 4 24 3 Display control ...
Page 39: ...MOVERIO Pro Developer s Guide Rev 1 4 33 4 UI control ...
Page 47: ...MOVERIO Pro Developer s Guide Rev 1 4 41 5 Voice commands ...
Page 70: ...MOVERIO Pro Developer s Guide Rev 1 4 64 6 Camera control ...
Page 119: ...MOVERIO Pro Developer s Guide Rev 1 4 113 7 Sensor control ...
Page 127: ...MOVERIO Pro Developer s Guide Rev 1 4 121 8 Bluetooth BLE ...
Page 184: ...MOVERIO Pro Developer s Guide Rev 1 4 178 9 Power control ...
Page 187: ...MOVERIO Pro Developer s Guide Rev 1 4 181 10 Self diagnostic function ...
Page 191: ...MOVERIO Pro Developer s Guide Rev 1 4 185 11 GPS Assist ...
Page 202: ...MOVERIO Pro Developer s Guide Rev 1 4 196 Memo ...