BluetoothスキャンstartLeScanテスト
1773 ワード
Bluetoothに描かれたstartLEScanレコード
:
c2
uuid
UUID[] heartUUID = new UUID[]{
UUID.fromString("0000180d-0000-1000-8000-00805f9b34fb")
};
UUID[] c2RowUUID = new UUID[]{
UUID.fromString("CE060000-43E5-11E4-916C-0800200C9A66")
};
uuid 2
UUID[] myUUID3 = new UUID[]{
UUID.fromString("CE060000-43E5-11E4-916C-0800200C9A66"),
UUID.fromString("0000180d-0000-1000-8000-00805f9b34fb")
};
UUID[] myUUID4 = new UUID[]{
UUID.fromString("0000180d-0000-1000-8000-00805f9b34fb"),
UUID.fromString("CE060000-43E5-11E4-916C-0800200C9A66")
};
callback BluetoothAdapter.LeScanCallback
callback2 callback
テストの開始
テスト1
mBluetoothAdapter.startLeScan(heartUUID,callback);
,
テスト2
c2
mBluetoothAdapter.startLeScan(c2RowUUID,callback);
, c2
テスト3
: ,
mBluetoothAdapter.startLeScan(myUUID3,callback);
テスト4
: ,
mBluetoothAdapter.startLeScan(myUUID4,callback);
BluetoothAdapter: uuids does not match
テスト5
:
mBluetoothAdapter.startLeScan(heartUUID,callback);
mBluetoothAdapter.startLeScan(c2RowUUID,callback);
テスト6
: ,
mBluetoothAdapter.startLeScan(heartUUID,callback);
mBluetoothAdapter.startLeScan(c2RowUUID,callback1);
まとめ
startLeScan uuid ,