Reputation: 921
I want to send 255 byte string data in react native with BLE, in android there is no problem but in ios only 185 byte can be sent, I requested for mtu = 255, but no result libraries that i tried: react-native-ble-plx and react-native-ble-manager
Upvotes: 2
Views: 873
Reputation: 18452
iOS has fixed MTU. You need to use the "Write Long Characteristic Values" procedure to write a longer value. This should be done automatically by iOS when you set the write type to be With Response. Just note that the peripheral needs to support prepared writes.
Upvotes: 2