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

How to read output from bluetooth device? #18

Closed
austinksmith opened this issue Jul 28, 2016 · 2 comments
Closed

How to read output from bluetooth device? #18

austinksmith opened this issue Jul 28, 2016 · 2 comments
Labels

Comments

@austinksmith
Copy link

It seems this is (and all the other similar projects I've come across) are simply bluetooth managers IE. you can disconnect and connect to devices from within in app which seems rather odd since the OS can typically handle that on its own. Perhaps I'm not understanding the documentation correctly but how can I do something like this..

bluetoothHeartMonitor.listenForInput(input) {
 this.setState{
    pulse: input;
  }
}

render() {
  <text>{this.state.pulse}</text>
}

Where input is the value that came from the bluetooth device. Any help is much appreciated, thanks.

@marcosinigaglia
Copy link
Member

Hi, read this documentation. I think you have to connect to the device and start notification on service 180D and characteristic 2A37.

@austinksmith
Copy link
Author

Thanks, I will follow up if I have any more concerns. The heartbeat monitor was just an example, the device i'll be interacting with is going to be a barcode scanner.

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

No branches or pull requests

2 participants