question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Service and Characteristics Returning Hexadecimal Values instead of 16 bit binary values .

See original GitHub issue

Version

Tell us which versions you are using:

  • react-native-ble-manager v?.?.?
  • react-native v?.?
  • iOS/Android v.?

Expected behaviour

Tell us what should happen

Actual behaviour

Tell us what happens instead

Steps to reproduce

Stack trace and console log

Hint: it would help a lot if you enable the debugger (“Pause on exceptions” in the “Source” panel of Chrome dev tools) and spot the place where the error is thrown

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
Anandks1993commented, Apr 23, 2018

@marcosinigaglia I am also getting “XXXX” as uuid Below is the details, I got from retrieveServices method.

{ characteristics:
    [ { properties: { Indicate: 'Indicate' },
        characteristic: '2a05',
        service: '1801' },
      { properties: { Read: 'Read' },
        characteristic: '2a00',
        service: '1800' },
      { properties: { Read: 'Read' },
        characteristic: '2a01',
        service: '1800' },
      { properties: { Read: 'Read' },
        characteristic: '2aa6',
        service: '1800' },
      { descriptors: [ { value: null, uuid: '2902' }, { value: null, uuid: '2901' } ],
        properties: { Notify: 'Notify' },
        characteristic: '2a37',
        service: '180d' },
      { properties: { Read: 'Read' },
        characteristic: '2a38',
        service: '180d' },
      { properties: { Write: 'Write' },
        characteristic: '2a39',
        service: '180d' } ],
   services: [ { uuid: '1801' }, { uuid: '1800' }, { uuid: '180d' } ],
   id: '7B:E7:B4:3E:AF:3D',
   name: 'Default' },

Is this is possible to read/write with this data ? If possible can you please tell me which characteristic and services uuid to pass as an argument to retrieveServices method. I was using one IOT device which gave 16-bit binary value, so I could able to read/write with that device. But now I am trying to get data from an Android device(version 6.0.1) which returns XXXX as uuid.

Thanks in advance.

0reactions
KarthickCSKcommented, Oct 28, 2017

@vldgeorgiev In my case i am trying to scan a smart wrist band. I am actually unaware of the advertised services and characteristics. Other than the app developed by the wrist band firm . I am facing the same issue even in native android built applications

Read more comments on GitHub >

github_iconTop Results From Across the Web

Binary and hexadecimal numbers explained for developers
Using hexadecimal numerals to express the value of a byte is a powerful technique.
Read more >
Chapter 3: Numbers, Characters and Strings -- Valvano
Each octal digit maps directly to/from 3 binary digits. Hexadecimal Numbers. The hexadecimal number system uses base 16 as opposed to our regular...
Read more >
Working with Hexadecimal values in C programming language
Hexadecimal value has 16 alphanumeric values from 0 to 9 and A to F, with the base 16. (Read more about Computer number...
Read more >
A Tutorial on Data Representation - Integers, Floating-point ...
Example 3: Suppose that n=16 and the binary pattern is 0000 0000 0000 0000B , the value of this unsigned integer is 0...
Read more >
Making Sense of Hexdump | SUSE Communities
I often work with binary data that has a format I could interpret ... The first 16 bits of the example file are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found