adafruit / Bluefruit_LE_Connect_Android

Android port of Adafruit's Bluefruit LE Connect app
MIT License
122 stars 100 forks source link

Display DFU version number? #9

Closed microbuilder closed 9 years ago

microbuilder commented 9 years ago

Is it possible to display the DFU Version characteristic's value in the Info activity? I don't seem to get any value here:

screenshot_2015-02-01-12-41-53

antonio-openroad commented 9 years ago

It's actually displayed but the default format is "display as string" and if the value is 0x0000 or 0x0500 the String is empty because those characters are not valid ASCII. That's why you don't see anything there.

If you click on the cell, the display mode changes between "display as string" and "display as hex" and you will see 00-00 or 05-00.

I could check that if any characteristic has a null String then the default format for that characteristic should be "display as hex". It's ok?

microbuilder commented 9 years ago

That sounds like a good idea (default to hex if there isn't a string). I'll close this since I can see the 05-00 though.