android bluetooth - How to Send an Audio HEX file to Ble Device -


i have working ble device android . sends , receives data finely through android app. problem want send audio hex files ble device. , larger 20 bytes. how can send such data ble device. ??

for send data upper 20bytes, need change mtu-exchange.

to api level 21, can use requestmtu (android developer), negotiates peripherical device , can define until 512 bytes.

the mtu value defined in peripherical side. remember data size can send mtu-3 bytes.

for api level less 21, mtu pre-defined , can't modify.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -