-
Notifications
You must be signed in to change notification settings - Fork 38
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
Reading Floats being sent by the RFduino #5
Comments
I am also having this issue. |
@madCode second use this code in android for receiving |
This worked! Thank you :) |
Hi, if i have to send 2 float? Thank You. |
@saadbutt67 hey, I facing the same problem but I have no clue how to change the source code of the apk. Possible to help me with it? thanks |
@angel545 are you using eclipse or android studio |
@saadbutt67 I am using android studio. I wonder is it possible that you can send me the modified apk file straight? thanks |
@saadbutt67 I tried a few times to compile the apk file again after
|
@angel545 addData(intent.getByteArrayExtra(RFduinoService.EXTRA_DATA)); This is where you're receiving data |
Replace this line of code with the one i commented earlier For multiple float values do a loop Hope this helps |
Hi @lann , I have been using your test project but i am facing an issue. I cant figure out how to read float values being sent by the RFduino to the android application. I have tried Floatbuffer, float.parse string, even the HEX helper but all in vain . From what i understand your code gives us a way to get the recieved data (initially in the form of bytes) in the form of a string or convert it into HEX values. but it would be extremely helpfull if you can let me know how to solve this problem
The text was updated successfully, but these errors were encountered: