
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.
rpi-wifi-connection
Advanced tools
Module to connect a Raspberry Pi to Wi-Fi
$ npm install rpi-wifi-connection --save
var Wifi = require('rpi-wifi-connection');
var wifi = new Wifi();
Constructs a new wifi connection object.
Connects to the specified network.
var Wifi = require('rpi-wifi-connection');
var wifi = new Wifi();
wifi.connect({ssid:'my-network', psk:'raspberry'}).then(() => {
console.log('Connected to network.');
})
.catch((error) => {
console.log(error);
});
var Wifi = require('rpi-wifi-connection');
var wifi = new Wifi();
wifi.getStatus().then((status) => {
console.log(status);
})
.catch((error) => {
console.log(error);
});
// { ssid: 'Julia', ip_address: '10.0.1.189' }
var Wifi = require('rpi-wifi-connection');
var wifi = new Wifi();
wifi.getState().then((connected) => {
if (connected)
console.log('Connected to network.');
else
console.log('Not connected to network.');
})
.catch((error) => {
console.log(error);
});
Returns a promise containing a list of Wi-Fi networks.
var Wifi = require('rpi-wifi-connection');
var wifi = new Wifi();
wifi.getNetworks().then((networks) => {
console.log(networks);
});
// [ { id: 0, ssid: 'Julia' } ]
FAQs
Module to connect a Raspberry Pi to Wi-Fi
The npm package rpi-wifi-connection receives a total of 13 weekly downloads. As such, rpi-wifi-connection popularity was classified as not popular.
We found that rpi-wifi-connection demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.