How to use the bindings.DeviceINQ function in bindings

To help you get started, we’ve selected a few bindings 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 eelcocramer / node-bluetooth-serial-port / lib / device-inquiry.js View on Github external
(function () {
    "use strict";

    // javascript shim that lets our object inherit from EventEmitter
    var DeviceINQ = require('bindings')('BluetoothSerialPort.node').DeviceINQ,
        events = require('events');

    // extend prototype
    function inherits(target, source) {
        var k;

        for (k in source.prototype) {
            target.prototype[k] = source.prototype[k];
        }
    }

    inherits(DeviceINQ, events.EventEmitter);
    exports.DeviceINQ = DeviceINQ;

}());