Skip to content

couldn't detect nearby bluetooth device #83

@biks152207

Description

@biks152207

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions