S Scantech Well-Known Member Licensed User Longtime User Apr 18, 2026 #1 I am working on BLE project in B4J and i need to send data packets larger then the default 23 bytes. I want to request a higher MTU and importantly get the result. Can it be done in Bleak library?
I am working on BLE project in B4J and i need to send data packets larger then the default 23 bytes. I want to request a higher MTU and importantly get the result. Can it be done in Bleak library?
Erel B4X founder Staff member Licensed User Longtime User Apr 19, 2026 #2 You cannot change the mtu. You can get it with: B4X: mClient.client.GetField("mtu_size").Print 'or fetch the value Upvote 0
You cannot change the mtu. You can get it with: B4X: mClient.client.GetField("mtu_size").Print 'or fetch the value
S Scantech Well-Known Member Licensed User Longtime User Apr 19, 2026 #3 Can't figure out how to pass it to int variable? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Apr 21, 2026 #4 Best to use the fetch macro: B4X: Dim mtu As PyWrapper = mClient.client.GetField("mtu_size") Wait For (mtu.Fetch) Complete (mtu As PyWrapper) Dim MtuValue As Double = mtu.Value Upvote 0
Best to use the fetch macro: B4X: Dim mtu As PyWrapper = mClient.client.GetField("mtu_size") Wait For (mtu.Fetch) Complete (mtu As PyWrapper) Dim MtuValue As Double = mtu.Value