D doodooronron Member Licensed User Sep 29, 2020 #1 I see that the BLE data packet size can be increased in Android by use of manager.RequestMtu(n) but cannot find it in the iOS libraries and get an error when I try to use it in code. Is this instruction implemented in iOS yet? If not, is there any more elegant way round it than adding incoming data to a buffer then parsing byte-by-byte?
I see that the BLE data packet size can be increased in Android by use of manager.RequestMtu(n) but cannot find it in the iOS libraries and get an error when I try to use it in code. Is this instruction implemented in iOS yet? If not, is there any more elegant way round it than adding incoming data to a buffer then parsing byte-by-byte?
Erel B4X founder Staff member Licensed User Longtime User Sep 29, 2020 #2 It looks like it is fixed on about 158 bytes. There is no similar API in iOS. Tip: use B4XBytesBuilder for the buffer (B4XCollections library). Upvote 0
It looks like it is fixed on about 158 bytes. There is no similar API in iOS. Tip: use B4XBytesBuilder for the buffer (B4XCollections library).
D doodooronron Member Licensed User Sep 29, 2020 #3 It looks like it is fixed on about 158 bytes. Click to expand... Thanks for the tip, Erel. I'm not sure what you mean is fixed on about 158 bytes. Do you mean the iOS data packet size limit is 158 bytes? If so, that would be plenty for my application. Upvote 0
It looks like it is fixed on about 158 bytes. Click to expand... Thanks for the tip, Erel. I'm not sure what you mean is fixed on about 158 bytes. Do you mean the iOS data packet size limit is 158 bytes? If so, that would be plenty for my application.
Erel B4X founder Staff member Licensed User Longtime User Sep 29, 2020 #4 Yes. This is based on some online discussions that I've read. Search Google and you will see. Upvote 0
D doodooronron Member Licensed User Sep 29, 2020 #5 Yes, looks like it's mercifully bigger than the paltry 20 bytes standard of Android. Found this: " iPhone iOS 8 has a maximum MTU size of 135 bytes, iOS 9 158 bytes and iOS 10 185 bytes" on https://devzone.nordicsemi.com/f/nordic-q-a/44825/ios-mtu-size-why-only-185-bytes It will save a ton of work if that's the case. Thanks again Upvote 0
Yes, looks like it's mercifully bigger than the paltry 20 bytes standard of Android. Found this: " iPhone iOS 8 has a maximum MTU size of 135 bytes, iOS 9 158 bytes and iOS 10 185 bytes" on https://devzone.nordicsemi.com/f/nordic-q-a/44825/ios-mtu-size-why-only-185-bytes It will save a ton of work if that's the case. Thanks again