All Projects → frostney → react-native-bluetooth-state

frostney / react-native-bluetooth-state

Licence: Unlicense license
📶 Answering the question of "Is my bluetooth on?" in React Native

Programming Languages

objective c
16641 projects - #2 most used programming language
javascript
184084 projects - #8 most used programming language
python
139335 projects - #7 most used programming language
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to react-native-bluetooth-state

gear-vr-controller-linux
Gear VR Controller Linux WebBrowser mouse
Stars: ✭ 37 (-48.61%)
Mutual labels:  bluetooth
coBlue
Use Bluetooth Low Energy for remote commands, file transfer, Based on bluez Bluetooth protocol stack (BLE Terminal)
Stars: ✭ 41 (-43.06%)
Mutual labels:  bluetooth
libopenaptx
Open Source implementation of Audio Processing Technology codec (aptX)
Stars: ✭ 106 (+47.22%)
Mutual labels:  bluetooth
AirPodsDesktop
☄️ AirPods desktop user experience enhancement program, for Windows and Linux (WIP)
Stars: ✭ 462 (+541.67%)
Mutual labels:  bluetooth
esp32 bluetooth classic sniffer
Active Bluetooth BR/EDR Sniffer/Injector as cheap as any ESP32 board can get. Works with Scapy ;-)
Stars: ✭ 347 (+381.94%)
Mutual labels:  bluetooth
joycon-rs
Joy-Con library for Rust 🦀 🎮
Stars: ✭ 104 (+44.44%)
Mutual labels:  bluetooth
contact-tracer
A prototype contact tracer app for COVID-19 pandemic response
Stars: ✭ 50 (-30.56%)
Mutual labels:  bluetooth
ioBroker.ble
Monitor Bluetooth Low Energy beacons
Stars: ✭ 39 (-45.83%)
Mutual labels:  bluetooth
rpi3-wifi-conf
A simple Python script to configure wifi over bluetooth for a Raspberry Pi 3
Stars: ✭ 112 (+55.56%)
Mutual labels:  bluetooth
app-xyo-nodejs
XYO Archivist/Diviner CLI
Stars: ✭ 41 (-43.06%)
Mutual labels:  bluetooth
uberducky
Wireless USB Rubber Ducky triggered via BLE (make your Ubertooth quack!)
Stars: ✭ 80 (+11.11%)
Mutual labels:  bluetooth
ESP32 Thing Plus
ESP32 Thing-compatible board using the WROOM module and a QWIIC connector.
Stars: ✭ 18 (-75%)
Mutual labels:  bluetooth
lhctrl
Power management of Valve v1 lighthouses over Bluetooth LE
Stars: ✭ 28 (-61.11%)
Mutual labels:  bluetooth
ble
Bluetooth Low Energy for Linux / macOS
Stars: ✭ 264 (+266.67%)
Mutual labels:  bluetooth
ansible-playbook-volumio-bluetooth
Pair your phone and stream audio to a Raspberry Pi running Volumio
Stars: ✭ 13 (-81.94%)
Mutual labels:  bluetooth
bt profile
BT Profile Switcher
Stars: ✭ 18 (-75%)
Mutual labels:  bluetooth
ionic-escpos-bluetooth-printer-sample
Sample use of ionic 3 with a bluetooth esc/pos thermal printer
Stars: ✭ 40 (-44.44%)
Mutual labels:  bluetooth
Aranet4-Python
Aranet4 Python client
Stars: ✭ 122 (+69.44%)
Mutual labels:  bluetooth
joyconpi
An attempt at emulating a Nintendo Switch Joy-Con controller with a Raspberry Pi
Stars: ✭ 24 (-66.67%)
Mutual labels:  bluetooth
spotifypiHome
"Install and go" multiroom music playback solution, with support for spotify, airplay and bluetooth.
Stars: ✭ 32 (-55.56%)
Mutual labels:  bluetooth

react-native-bluetooth-state

Answering the question of "Is my bluetooth on?" in React Native

This module only works for iOS at the moment.

Installation

$ npm install react-native-bluetooth-state

React Native >=0.7.0 is needed.

You then need to add the Objective-C part to your XCode project. Drag RNBluetoothState.xcodeproj from the node_modules/react-native-bluetooth-state folder into your XCode project. Click on the your project in XCode, goto Build Phases then Link Binary With Libraries and add libRNBluetoothState.a and CoreBluetooth.framework.

(Alternatively you can use RNPM to link the library, but in any case you need to link against CoreBluetooth.framework.)

Usage

import BluetoothState from 'react-native-bluetooth-state';

BluetoothState.subscribe(bluetoothState => {
  // bluetoothState can either be "on", "off", "unknown", "unauthorized", "resetting" or "unsupported‚"
});

// Initialize needs to be called otherwise we don't get the initial state
BluetoothState.initialize();

License

Unlicense or MIT. Whatever fits your purpose best.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].