Class: Noble

Noble

new Noble()

Creates a new noble device
Source:

Methods

startScanning(serviceUuidsnullable, allowDuplicatesnullable, callbacknullable)

Start Scanning services
Parameters:
Name Type Attributes Description
serviceUuids Array.<string> <nullable>
an array of strings specifying service's UUID
allowDuplicates boolean <nullable>
true, allows duplicates false forbid them
callback function <nullable>
function to call if errors
Source:
Examples
// any service UUID, no duplicates
var noble = require('noble');
noble.startScanning(); 
// any service UUID, allow duplicates
var noble = require('noble');
noble.startScanning([], true); 
// particular UUID's
var noble = require('noble');
// default: [] => all
var serviceUUIDs = ["<service UUID 1>", ...]; 
// default: false
var allowDuplicates = <false|true>; 
// callback error optional
noble.startScanning(serviceUUIDs, allowDuplicates[, callback(error)]);