igodese Member Licensed User Jan 21, 2019 #1 Hi All, I'm writing an application for Android and all goes fine with the communication in both directions. Now I need to "enlarge" the size of packets. I want to send to the device the indication to use MTU = 247 (244 bytes of data). Is there any example on how to do it ? Any help will be greatly appreciated. Thanks..
Hi All, I'm writing an application for Android and all goes fine with the communication in both directions. Now I need to "enlarge" the size of packets. I want to send to the device the indication to use MTU = 247 (244 bytes of data). Is there any example on how to do it ? Any help will be greatly appreciated. Thanks..
Erel B4X founder Staff member Licensed User Longtime User Jan 22, 2019 #2 Code: Sub Manager_Connected (services As List) Log("Connected") manager.RequestMtu(40) End Sub Sub Manager_MtuChanged (Success As Boolean, MTU As Int) Log("MTU: " & Success & ", " & MTU) End Sub Last edited: Apr 1, 2020 Upvote 0
Code: Sub Manager_Connected (services As List) Log("Connected") manager.RequestMtu(40) End Sub Sub Manager_MtuChanged (Success As Boolean, MTU As Int) Log("MTU: " & Success & ", " & MTU) End Sub
igodese Member Licensed User Jan 22, 2019 #4 I tried, but in the libraries list I still see "version1.37" and the manager.RequestMtu is marked as error. I see in the new xml the definition of RequestMtu and I refreshed libraries in the IDE. What can have happened ? Upvote 0
I tried, but in the libraries list I still see "version1.37" and the manager.RequestMtu is marked as error. I see in the new xml the definition of RequestMtu and I refreshed libraries in the IDE. What can have happened ?
DonManfred Expert Licensed User Longtime User Jan 22, 2019 #5 igodese said: I tried, but in the libraries list I still see "version1.37" Click to expand... did you copied the new lib to the INTERNAL Libraries folder? did you put it in additional libs folder by accident? Upvote 0
igodese said: I tried, but in the libraries list I still see "version1.37" Click to expand... did you copied the new lib to the INTERNAL Libraries folder? did you put it in additional libs folder by accident?