Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@embedded-js/wifi-connection-manager
Advanced tools
A wifi connection manager for Embedded JS that supports multiple networks and auto-reconnect.
[!IMPORTANT] This module is ESM only and only available for usage with the Moddable SDK as it uses core dependencies. Learn how to setup an Embedded JavaScript project using xs-dev.
A robust solution to manage Wi-Fi connections in embedded systems using the Moddable SDK. WiFiConnectionManager
simplifies the process of maintaining an active connection to a Wi-Fi access point.
close
.WiFi.disconnect
messages.ready
getter to quickly determine if Wi-Fi is connected.npm install @embedded-js/wifi-connection-manager
import Net from "net"; // From moddable SDK
import { WiFiConnectionManager } from "@embedded-js/wifi-connection-manager";
const manager = new WiFiConnectionManager(
[
// First access point to attempt
{
ssid: "Freebox-ScreamZ",
password: "invalid!", // Invalid password for testing in a simulator
},
// Second access point to attempt
{
ssid: "Freebox-ScreamZ",
password: "good_password",
},
],
(message) => {
switch (msg) {
case WiFiConnectionManager.connected:
break; // still waiting for IP address
case WiFiConnectionManager.gotIP:
trace(`IP address ${Net.get("IP")}\n`);
break;
case WiFiConnectionManager.disconnected:
break; // connection lost
}
}
);
// Example: Checking if connected (procedural way)
if (manager.ready) {
console.log("Wi-Fi is connected!");
}
// Close connection when needed
manager.close();
FAQs
A wifi connection manager for Embedded JS that supports multiple networks and auto-reconnect.
The npm package @embedded-js/wifi-connection-manager receives a total of 4 weekly downloads. As such, @embedded-js/wifi-connection-manager popularity was classified as not popular.
We found that @embedded-js/wifi-connection-manager demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.