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

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -