Skip to content
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

Cant Read Float values coming from RFDUINO #6

Open
saadbutt67 opened this issue Feb 26, 2015 · 0 comments
Open

Cant Read Float values coming from RFDUINO #6

saadbutt67 opened this issue Feb 26, 2015 · 0 comments

Comments

@saadbutt67
Copy link

Hi @lann i am gonna update my problem statement it seemed a bit vague last time.
Code in RFDUINO so that everytime i send a value it sends me back the float value 2.34

include <RFduinoBLE.h>

void setup() {
RFduinoBLE.advertisementData = "ledbtn";
RFduinoBLE.begin();
}
void loop() {
}
void RFduinoBLE_onReceive(char *data, int len)
{
RFduinoBLE.send(2.34);
}

. when i try to do
byte[] ff = intent.getByteArrayExtra(RFduinoService.EXTRA_DATA);
Float.parseFloat(HexAsciiHelper.bytesToAsciiMaybe(ff))
i get the following errors
logcat

can you help me please?????

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant