-
Notifications
You must be signed in to change notification settings - Fork 289
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
How to send Hex Values via Bluetooth #71
Comments
I also need to pass hex value with this package. Can anyone help please? |
Have you managed to solve this problem? I'm facing similar one right now. Any help would be appreciated |
Here is my solution:
Hope that still helpful. |
I found how to :p spent 2 Daysbasically the array wasn't showing as a uint8array but as a typedArray
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the BluetoothSerialExample I see:
But I need to send the Enquiry ENQ (0x05). And if I store into the "message" value 0x05, slave device gives me no response, because it probably wants hex value 0x05, not string value.
In the ..\react-native-bluetooth-serial-master\index.js I see:
Should I replace data.toString('base64') with data('base64') to pass hex value, or should I in ..\node_modules\react-native-bluetooth-serial\android\src\main\java\com\rusel\RCTBluetoothSerial\RCTBluetoothSerialModule.java:
replace String message with Int message in order to send hex value 0x05?
Please help me. I feel so lost.
The text was updated successfully, but these errors were encountered: