
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
easy-bluetooth-le
Advanced tools
A Library for easy implementation of Serial Bluetooth Low Energy on React Native. đź’™
A Library for easy implementation of Serial Bluetooth Low Energy on React Native. đź’™
Looking for Bluetooth Classic? Look here.
import EasyBluetooth from 'easy-bluetooth-le';
...
var config = {
"uuidService": "e7810a71-73ae-499d-8c15-faa9aef0c3f2",
"uuidCharacteristic": "bef8d6c9-9c21-4c9e-b632-bd58c1009f9f",
"deviceName": "Bluetooth Example Project",
"bufferSize": 1024,
"characterDelimiter": "\n"
}
EasyBluetooth.init(config)
.then(function (config) {
console.log("config done!");
})
.catch(function (ex) {
console.warn(ex);
});
EasyBluetooth.startScan()
.then(function (devices) {
console.log("all devices found:");
console.log(devices);
})
.catch(function (ex) {
console.warn(ex);
});
EasyBluetooth.connect(device)
.then(() => {
console.log("Connected!");
})
.catch((ex) => {
console.warn(ex);
})
EasyBluetooth.writeln("Works in React Native!")
.then(() => {
console.log("Writing...")
})
.catch((ex) => {
console.warn(ex);
})
componentWillMount() {
  this.onDeviceFoundEvent = EasyBluetooth.addOnDeviceFoundListener(this.onDeviceFound.bind(this));
this.onStatusChangeEvent = EasyBluetooth.addOnStatusChangeListener(this.onStatusChange.bind(this));
  this.onDataReadEvent = EasyBluetooth.addOnDataReadListener(this.onDataRead.bind(this));
this.onDeviceNameEvent = EasyBluetooth.addOnDeviceNameListener(this.onDeviceName.bind(this));
}
...
onDeviceFound(device) {
console.log("onDeviceFound");
console.log(device);
}
onStatusChange(status) {
console.log("onStatusChange");
console.log(status);
}
onDataRead(data) {
console.log("onDataRead");
console.log(data);
}
onDeviceName(name) {
console.log("onDeviceName");
console.log(name);
}
...
componentWillUnmount() {
  this.onDeviceFoundEvent.remove();
this.onStatusChangeEvent.remove();
  this.onDataReadEvent.remove();
this.onDeviceNameEvent.remove();
}
Run in console:
npm i -S easy-bluetooth-le
Link:
react-native link easy-bluetooth-le
Add jitpack repository in android/build.gradle
:
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
New features, bug fixes and improvements are welcome! For questions and suggestions use the issues.
The MIT License (MIT)
Copyright (c) 2017 Douglas Nassif Roma Junior
See the full licence file.
FAQs
A Library for easy implementation of Serial Bluetooth Low Energy on React Native. đź’™
The npm package easy-bluetooth-le receives a total of 6 weekly downloads. As such, easy-bluetooth-le popularity was classified as not popular.
We found that easy-bluetooth-le 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.