Revisions for "Android Code BLE Implementation, SO Solution Provided."

Android Code BLE Implementation, SO Solution Provided.

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, I'll pay an extra $40 tip. Paypal, Amazon or whatever.

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:

http://stackoverflow.com/questions/40566377/writing-application-code-for-a-ble-scale-all-the-info-included/40569294#40569294

Source code of the basic scanner:

https://github.com/googlesamples/android-BluetoothLeGatt

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.

Cheers.

Android Code BLE Implementation, SO Solution Provided.
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, I'll pay an extra $40 tip. Paypal, Amazon or whatever. 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: http://stackoverflow.com/questions/40566377/writing-application-code-for-a-ble-scale-all-the-info-included/40569294#40569294 Source code of the basic scanner: https://github.com/googlesamples/android-BluetoothLeGatt 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. Cheers.
Back to question