android - Request MTU is not working in Nougat -
i working on app communicate ble device.i can write 20 bytes on characteristics when more 20 bytes it's create problem.i using
mbluetoothgatt.requestmtu(512);
write charateristics after getting success.
@override public void onmtuchanged(bluetoothgatt gatt, int mtu, int status) { super.onmtuchanged(gatt, mtu, status); if (status == bluetoothgatt.gatt_success) { system.out.print("mtu granted"); // this.supportedmtu = mtu; } } which working fine in marshmallow , lolipop.but not working in nougat(samsung galaxy s6).
Comments
Post a Comment