
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@kano/devices-sdk-uwp
Advanced tools
@kano/devices-sdk-uwp
UWP implementation of the Kano devices SDK. Uses the JS UWP bindings to access the Windows Bluetooth API. Use in your JS UWP projects.
Create a new project in Visual Studio, choose Javascript > Progressive Web App.
Open the package.appxmanifest file and set the main URL to the URl of your web server. Make sure you enable Bluetooth in the Capabilities.
In a JS module in your project, insert the following (You must have server side module resolution or bundling):
import Devices from '@kano/devices-sdk-uwp/index.js';
Devices.searchForClosestDevice('wand', 5000)
.then((dev) => {
return dev.getSoftwareVersion()
.then((v) => {
console.log(v);
return dev.setLed(1, 0x00ff00);
})
.then(dev.getAdvertisementName())
.then((name) => {
console.log(name)
dev.on('position', (p) => {
console.log(p)
});
return dev.subscribePosition();
});
})
.catch(e => console.error(e.message));
To run the demo, start the web server with node ./demo/wand/server.js
. Then open the solution KanoDevicesSdk.sln
in visual studio and start the project on your local machine.
FAQs
> TODO: description
The npm package @kano/devices-sdk-uwp receives a total of 2 weekly downloads. As such, @kano/devices-sdk-uwp popularity was classified as not popular.
We found that @kano/devices-sdk-uwp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 20 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.