We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I cannot connect more than a peripheral on Android at the same time (not tested on iOS). Steps to reproduce:
var BLE = require("appcelerator.ble"); var centralManager = BLE.initCentralManager(); centralManager.addEventListener('didDiscoverPeripheral', function (e) { Ti.API.info('> [didDiscoverPeripheral] name: ' + e.peripheral.name + ', address: ' + e.peripheral.address + ', connected: ' + e.peripheral.isConnected); if (!e.peripheral.isConnected) { stopScan(); centralManager.connectPeripheral({peripheral: e.peripheral}); } }); centralManager.addEventListener('didConnectPeripheral', function(e) { Ti.API.info('> [didConnectPeripheral] name: ' + e.peripheral.name + ', address: ' + e.peripheral.address); }); centralManager.addEventListener('didDisconnectPeripheral', function(e) { Ti.API.info('> [didDisconnectPeripheral] name: ' + e.peripheral.name + ', address: ' + e.peripheral.address); }); centralManager.addEventListener('didFailToConnectPeripheral', function(e) { Ti.API.info('> [didFailToConnectPeripheral] name: ' + e.peripheral.name + ', address: ' + e.peripheral.address + ', error: (' + errorCode + ') ' + errorDescription); }); function startScan() { if (centralManager.isScanning) { alert('Already scanning, please stop scan first!'); return; } else if (centralManager.state != BLE.MANAGER_STATE_POWERED_ON) { alert('Please enable Bluetooth.'); return; } console.log('=== startScan ==='); setTimeout(function() { stopScan(); }, 10000); const ITAG_SERVICE = '0000ffe0-0000-1000-8000-00805f9b34fb'; centralManager.startScan({services: [ITAG_SERVICE]}); } function stopScan() { if (centralManager.isScanning) { console.log('=== stopScan ==='); centralManager.stopScan(); } } function test() { startScan(); }
The text was updated successfully, but these errors were encountered:
The issue reported above occurs only on Android. Test on iOS was successfull.
Sorry, something went wrong.
No branches or pull requests
I cannot connect more than a peripheral on Android at the same time (not tested on iOS).
Steps to reproduce:
The text was updated successfully, but these errors were encountered: