B4J Question BLE Bleak MTU

Scantech

Well-Known Member
Licensed User
Longtime User
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
Best to use the fetch macro:
B4J_Kems4YJ1Cr.gif


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
Top