Closed CannoChen closed 4 months ago
There's 2 methods. Setting up the subscription or repeatedly calling read.
The sample app library has both, the project is a sibling to this one under the main github. (react-native-bluetooth-classic-apps) You should be able to follow that. Let me know if any issues.
Oh it look slike you have a timeout with read data. That function takes a data object as a parameter. You're missing that.
My code is provided below:
My question is, once I have successfully connected to Bluetooth, how should I consistently read the data that Bluetooth transmits to me? Thanks for your kindness help!!!!