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
Post a Comment