Skip to content

How to run it? #2

Description

@xaionaro

I made

yarn install
yarn build

And after that:

nodejs ./examples/scan-for-devices.js

However I got:

xaionaro@void:~/src/node-osmo$ nodejs ./examples/scan-for-devices.js
Starting DJI device scanner...
/home/xaionaro/src/node-osmo/node_modules/@stoprocent/noble/lib/hci-socket/hci.js:503
  this._socket.write(cmd);
               ^

Error: Invalid argument
    at Hci.setScanEnabled (/home/xaionaro/src/node-osmo/node_modules/@stoprocent/noble/lib/hci-socket/hci.js:503:16)
    at Gap.stopScanning (/home/xaionaro/src/node-osmo/node_modules/@stoprocent/noble/lib/hci-socket/gap.js:64:13)
    at NobleBindings.stopScanning (/home/xaionaro/src/node-osmo/node_modules/@stoprocent/noble/lib/hci-socket/bindings.js:52:13)
    at Noble.stopScanning (/home/xaionaro/src/node-osmo/node_modules/@stoprocent/noble/lib/noble.js:200:20)
    at DjiDeviceScanner.stopScanningForDevices (file:///home/xaionaro/src/node-osmo/dist/scanner.js:28:21)
    at file:///home/xaionaro/src/node-osmo/examples/scan-for-devices.js:12:9
    at ModuleJob.run (node:internal/modules/esm/module_job:271:25)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:547:26)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:116:5)

Node.js v22.12.0

What is the way to run the tool? :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions