
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
laird-capacitor-plugin-android
Advanced tools
A work in progress capacitor plugin that communicates with BLE laird devices.
This plugin is still in development and is not live on NPM yet!
A Capacitor plugin that communicates with bluetooth low energy laird devices. Supports older devices with the BluetoothAdapter and newer devices uses the BluetoothLeScanner.
npm install laird-capacitor-plugin
npx cap sync
// Import Laird and Device.
import { Laird, Device } from 'laird-capacitor-plugin';
// Initialize the listener first.
Laird.addListener("deviceFoundEvent", (device) => {
console.log(device);
});
// Start discovering.
Laird.startDiscovering({ periodically: true });
startDiscovering(...)
cancelDiscovering()
connectToDevice(...)
disconnectFromDevice()
sendDataToDevice(...)
addListener(...)
addListener(...)
addListener(...)
addListener(...)
startDiscovering(options?: { periodically: boolean; } | undefined) => any
Start the discovering process for finding bluetooth devices.
Param | Type |
---|---|
options | { periodically: boolean; } |
Returns: any
cancelDiscovering() => any
Cancels the discovering process for finding bluetooth devices.
Returns: any
connectToDevice(options: { address: string; }) => any
Connects to the specified device with the address.
Param | Type |
---|---|
options | { address: string; } |
Returns: any
disconnectFromDevice() => any
Disconnects the current connected device.
Returns: any
sendDataToDevice(options: { data: string; }) => any
Sends data to the connected device.
Param | Type |
---|---|
options | { data: string; } |
Returns: any
addListener(eventName: 'discoveryStartEvent', callback: () => void) => Promise<PluginListenerHandle> & PluginListenerHandle
DiscoveryStartEvent
Param | Type |
---|---|
eventName | "discoveryStartEvent" |
callback | () => void |
Returns: any
addListener(eventName: 'discoveryStopEvent', callback: () => void) => Promise<PluginListenerHandle> & PluginListenerHandle
DiscoveryStopEvent
Param | Type |
---|---|
eventName | "discoveryStopEvent" |
callback | () => void |
Returns: any
addListener(eventName: 'deviceFoundEvent', callback: (device: Device) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
DeviceFoundListener
Param | Type | Description |
---|---|---|
eventName | "deviceFoundEvent" | DeviceFoundEvent |
callback | (device: Device) => void | Callback |
Returns: any
addListener(eventName: 'deviceRecvDataEvent', callback: (data: DeviceData) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
DeviceRecvDataListener
Param | Type | Description |
---|---|---|
eventName | "deviceRecvDataEvent" | DeviceRecvDataEvent |
callback | (data: DeviceData) => void | Callback |
Returns: any
Prop | Type |
---|---|
remove | () => any |
Prop | Type |
---|---|
name | string |
type | number |
address | string |
rssi | number |
Prop | Type |
---|---|
data | string |
FAQs
A work in progress capacitor plugin that communicates with BLE laird devices.
The npm package laird-capacitor-plugin-android receives a total of 0 weekly downloads. As such, laird-capacitor-plugin-android popularity was classified as not popular.
We found that laird-capacitor-plugin-android 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.