Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@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.
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.gotIP.connected:
break; // still waiting for IP address
case WiFiConnectionManager.gotIP.gotIP:
trace(`IP address ${Net.get("IP")}\n`);
break;
case WiFiConnectionManager.gotIP.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 5 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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.