How to use the noble.startScanning function in noble

To help you get started, we’ve selected a few noble examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lab11 / polypoint / phone / tritag.js View on Github external
noble.on('stateChange', function (state) {
	if (state === 'poweredOn') {
		// Note, tritag *does not* advertise it's service uuid, only eddystone/summon
		noble.startScanning(SUMMON_SERVICE_UUIDS, true);

		console.log('Started scanning.');
	}
});
github ChrisScheffler / miflora / lib / miflora2.js View on Github external
await new Promise((resolve, reject) => {
					noble.startScanning([ROOT_SERVICE_UUID], true, error => {
						if (error) {
							return reject(error);
						}
						return resolve();
					});
				});
				await wait(timeout);
github tigoe / BluetoothLE-Examples / noble / updateRSSI / updateRSSI.js View on Github external
function scan(state){
  if (state === 'poweredOn') {
    noble.startScanning();
    console.log("Started scanning");   
  } else {
    noble.stopScanning();
    console.log("Is Bluetooth on?");
  }
}
github tigoe / BluetoothLE-Examples / stickNfindExample / stickNfindExample.js View on Github external
function scan(state){
  if (state === 'poweredOn') {
    noble.startScanning();
    console.log("Started scanning");   
  } else {
    noble.stopScanning();
    console.log("Is Bluetooth on?");
  }
}
github tigoe / BluetoothLE-Examples / noble / scanExample / scan.js View on Github external
function scan(state){
  if (state === 'poweredOn') {
    noble.startScanning();
    console.log("Started scanning");
  } else {
    noble.stopScanning();
    console.log("Is Bluetooth on?");
  }
}
github tigoe / BluetoothLE-Examples / nobleExploreExample / nobleExplore.js View on Github external
function scan(state){
  if (state === 'poweredOn') {
    noble.startScanning();
    console.log("Started scanning");   
  } else {
    noble.stopScanning();
    console.log("Is Bluetooth on?");
  }
}
github tigoe / BluetoothLE-Examples / noble / exploreAsync / explore.js View on Github external
function scan(state){
  if (state === 'poweredOn') {
    noble.startScanning();
    console.log("Started scanning");   
  } else {
    noble.stopScanning();
    console.log("Is Bluetooth on?");
  }
}
github mKeRix / room-assistant / components / ble.js View on Github external
BLEScanner.prototype._startScanning = function (state) {
    if (state === 'poweredOn') {
        noble.startScanning([], true);
    }
    else {
        noble.stopScanning();
    }
};
github dermike / xiaomi-smart-scale-app / index.js View on Github external
noble.on('stateChange', state => {
  if (state === 'poweredOn') {
    noble.startScanning(['181d'], true);
  } else {
    noble.stopScanning();
  }
});
github triblondon / uribeacon-checkin / index.js View on Github external
noble.on('stateChange', function(state) {
	if (state === 'poweredOn') {
		log.info('Starting scan', {location:location});
		noble.startScanning([uribeaconUUID], true);
	}
});

noble

A Node.js BLE (Bluetooth Low Energy) central library.

MIT
Latest version published 7 years ago

Package Health Score

30 / 100
Full package analysis

Popular noble functions