Android Code BLE Implementation, SO Solution Provided.
New here? Learn about Bountify and follow @bountify to get notified of new bounties! x

All I need is the implementation. Everything is laid out.

I'm a bit stuck on this. I've been trying to implement this myself, but I just can't get it right.

If someone can get this working with parsing, hex to decimal method, and outputting the weight with a variable I can call on the xml.

Someone answered with the solution on stack overflow already, but it's the implementation that I'm having trouble with, I can't get it to output. I have to make sure it works before I pay.

Deadline is this Friday.

Thanks a lot.

SO problem:

Source code of the basic scanner:

The details are in SO, but I'll reiterate them here.

The service is on UUID 0XFFF0, the weight data characteristic is on UUID 0XFFF4.
I need to enable notifications on 0XFFF4 to be able to receive data.
The form of the data being received is in a 32 Byte array.

For example when I stand on the scale, it will send out

00 00 00 00 02 02 00 00 00 00 00 00 00 00 00 00
The weight data is on bytes 5 and 6. If you convert the hex values of bytes 5 and 6, in that example is '0202' it becomes 514 in decimal, which is 51.4kg.

I got the hexidecimal code outputting in the Data portion when I substituted the 0XFFF4 UUID in the SampleAttribute page since notification is already implemented for the source code.


awarded to Wikimedia

Crowdsource coding tasks.

0 Solutions