我有HTC Desire 816
,其Android版本是5.0.2
。 我想嘗試編碼BLE peripheral
模式。 我使用下面的代碼:藍牙外設模式隨着HTC Desire 816
BluetoothManager btManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE);
BluetoothAdapter btAdapter = btManager.getAdapter();
btAdapter.isMultipleAdvertisementSupported();
它總是返回null
對象。
HTC不支持BLE peripheral
模式嗎?
謝謝。