Write characteristic to BLE device using Kotlin
I am not having any luck writing a string to my BLE device. Every time I call gatt.writeCharacteristic(mChar) it return false and nothing happens.
The string value I need to write looks like this:
“120,20,0,Foo, 0.0”
I wrote an iOS app and have my string formatted just like this. So I know it isn't the structure of the string. I have tried a simple call of mChar.value = mString.toByteArray() then gatt.writeCharacteristic(mChar). This fails. Is there something I am missing here?...