stefanoxjx Active Member Licensed User Longtime User Aug 25, 2020 #1 Hi, I've a device with Android 8.0 and I should change bluetooth MTU value. Searching in the forum I found this: https://www.b4x.com/android/forum/threads/need-to-change-mtu-in-ble-application-solved.101722/ but manager.RequestMtu() doesn't call Manager_MtuChanged. Do you have any idea why this happens? Thanks.
Hi, I've a device with Android 8.0 and I should change bluetooth MTU value. Searching in the forum I found this: https://www.b4x.com/android/forum/threads/need-to-change-mtu-in-ble-application-solved.101722/ but manager.RequestMtu() doesn't call Manager_MtuChanged. Do you have any idea why this happens? Thanks.
Erel B4X founder Staff member Licensed User Longtime User Aug 26, 2020 #2 RequestMtu returns a boolean value. Does it return true? Upvote 0
stefanoxjx Active Member Licensed User Longtime User Aug 26, 2020 #3 Hi Erel, RequestMtu returns true, but I've discovered where is the problem. Is too early call RequestMtu into Manager_Connected callback. Now I call RequestMtu after two seconds from connection and Manager_MtuChanged is called properly. Upvote 0
Hi Erel, RequestMtu returns true, but I've discovered where is the problem. Is too early call RequestMtu into Manager_Connected callback. Now I call RequestMtu after two seconds from connection and Manager_MtuChanged is called properly.