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);
Содержание Moverio Pro BT-2000
Страница 7: ...MOVERIO Pro Developer s Guide Rev 1 4 1 1 Introduction ...
Страница 12: ...MOVERIO Pro Developer s Guide Rev 1 4 6 2 Developing Apps ...
Страница 30: ...MOVERIO Pro Developer s Guide Rev 1 4 24 3 Display control ...
Страница 39: ...MOVERIO Pro Developer s Guide Rev 1 4 33 4 UI control ...
Страница 47: ...MOVERIO Pro Developer s Guide Rev 1 4 41 5 Voice commands ...
Страница 70: ...MOVERIO Pro Developer s Guide Rev 1 4 64 6 Camera control ...
Страница 119: ...MOVERIO Pro Developer s Guide Rev 1 4 113 7 Sensor control ...
Страница 127: ...MOVERIO Pro Developer s Guide Rev 1 4 121 8 Bluetooth BLE ...
Страница 184: ...MOVERIO Pro Developer s Guide Rev 1 4 178 9 Power control ...
Страница 187: ...MOVERIO Pro Developer s Guide Rev 1 4 181 10 Self diagnostic function ...
Страница 191: ...MOVERIO Pro Developer s Guide Rev 1 4 185 11 GPS Assist ...
Страница 202: ...MOVERIO Pro Developer s Guide Rev 1 4 196 Memo ...