We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在基于nordic nrf52832ble5.0蓝牙芯片开发时,通过一项自定义的可读写服务只能有效写入数据,无法读取。后来在<DeviceControlActivity.Java>Line 342发现在进行特征属性判断时将读写分为互斥事件,实现并行判断后可进行读取。
if ((charaProp & BluetoothGattCharacteristic.PROPERTY_WRITE) > 0) { mSpCache.put(WRITE_CHARACTERISTI_UUID_KEY + mDevice.getAddress(), characteristic.getUuid().toString()); ((EditText) findViewById(R.id.show_write_characteristic)).setText(characteristic.getUuid().toString()); BluetoothDeviceManager.getInstance().bindChannel(mDevice, PropertyType.PROPERTY_WRITE, service.getUuid(), characteristic.getUuid(), null); } else if ((charaProp & BluetoothGattCharacteristic.PROPERTY_READ) > 0) { BluetoothDeviceManager.getInstance().bindChannel(mDevice, PropertyType.PROPERTY_READ, service.getUuid(), characteristic.getUuid(), null); BluetoothDeviceManager.getInstance().read(mDevice); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
在基于nordic nrf52832ble5.0蓝牙芯片开发时,通过一项自定义的可读写服务只能有效写入数据,无法读取。后来在<DeviceControlActivity.Java>Line 342发现在进行特征属性判断时将读写分为互斥事件,实现并行判断后可进行读取。
The text was updated successfully, but these errors were encountered: