New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can I send hexadecimal data to BLE instead of base64 format? #87
Comments
Hi, for now you have to convert in the base64. |
Can I modify the source code to send hexadecimal ? |
I don't understand the problem, you can convert you hexadecimal value in base64. |
Because of the BLE device only analysis the hexadecimal value, so I only to send hexadecimal value. |
The base64 is only the way to send bytes from javascript to the native part of the module, the module reconvert the base64 string in bytes and write to the device. |
I change the source code to send String value, and transform string to byte array as parameter to peripheral.write(),and transform byte to hexadecimal byte array as parameter to characteristic.setValue(), finally the BLE device successfully read the value. |
No description provided.
The text was updated successfully, but these errors were encountered: