npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@iotize/device-com-ble.node

v2.1.1

Published

Bluetooth Low Energy (BLE) communication protocol for IoTize device

Downloads

135

Readme

Iotize BLE

Iotize device communication protocol for BLE on node environment.

It works with a compatible dongle or an up to date windows 10 build.

Prerequisities

This library depends on open source project https://github.com/noble/noble. See their README for complete instruction on how to setup BLE on different OS.

Need WinUSB driver https://github.com/pbatard/libwdi/wiki/Zadig

Not working on all bluetooth adapter. See list in noble project https://github.com/noble/node-bluetooth-hci-socket#windows...

Windows

With an elevated shell (only required with old Node.js version ?)

npm install --global --production windows-build-tools

Troubleshooting

npm ERR! C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.Cpp.Platform.targets(44,5): error MSB8020: The builds tools for v140 (Platform Toolset = 'v140') cannot be found. To build using the v140 build tools, either click the Project menu or right-click the solution, and then select "Update VC++ Projects...". Install v140 to build using the v140 build tools. [C:\Users\scale\dev\iotize\bitbucket\standalone\device-com-ble.node\node_modules\@abandonware\noble\build\noble.vcxproj]

Solution 1: Install visual studio 2015 C++ toolkit (see image doc/visual-studio-installation-setup.png)

Solution 2: Make sure MSBuild.exe is in your PATH

npm ERR! C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\x64\PlatformToolsets\v140\Toolset.targets(36,5): error MSB8036: The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution". [C:\Users\scale\dev\iotize\bitbucket\standalone\device-com-ble.node\node_modules\@abandonware\noble\build\noble.vcxproj]

Solution: Run installation of setup/windows-sdk-8.1-setup.exe

npm ERR! gyp ERR! stack Error: Could not find any Visual Studio installation to use
npm ERR! gyp ERR! stack     at VisualStudioFinder.fail (C:\ProgramData\nvm\v16.14.1\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:122:47)
npm ERR! gyp ERR! stack     at C:\ProgramData\nvm\v16.14.1\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:75:16
npm ERR! gyp ERR! stack     at VisualStudioFinder.findVisualStudio2013 (C:\ProgramData\nvm\v16.14.1\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:363:14)
npm ERR! gyp ERR! stack     at C:\ProgramData\nvm\v16.14.1\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:71:14
npm ERR! gyp ERR! stack     at C:\ProgramData\nvm\v16.14.1\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:396:20
npm ERR! gyp ERR! stack     at C:\ProgramData\nvm\v16.14.1\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7
npm ERR! gyp ERR! stack     at C:\ProgramData\nvm\v16.14.1\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16
npm ERR! gyp ERR! stack     at ChildProcess.exithandler (node:child_process:406:5)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:526:28)
npm ERR! gyp ERR! stack     at maybeClose (node:internal/child_process:1092:16)

Solution: Check your npm config get msvs_version version configured. To set version do npm config set msvs_version 2019 --global