-
Notifications
You must be signed in to change notification settings - Fork 552
Closed
Labels
Description
Hi i couldn't get nearby device even the bluetooth is turn on in other device.
`constructor(props) {
super(props);
this.state = { text: ''};
this.manager = new BleManager();
this.scan = this.scan.bind(this);
this.error = this.error.bind(this);
this.scanAndConnect = this.scanAndConnect.bind(this);
}
scanAndConnect() {
this.manager.startDeviceScan(null, null, (error, device) => {
console.log(error);
console.log(device);
})
}
componentWillMount() {
const subscription = this.manager.onStateChange((state) => {
if (state === 'PoweredOn') {
this.scanAndConnect();
subscription.remove();
}
}, true);
}`
Scan and connect should provide me the nearby device.but doesn't show anything..i tried multiple times.no luck.Also i am testing in real device.
Reactions are currently unavailable