Skip to content

sunilkumarkm/react-native-bluetooth-classic-hex

 
 

Repository files navigation

react-native-bluetooth-classic-hex

React Native Bluetooth Classic Hex is basically to provide the Hexadecimal support for data communtication.

Based off the react-native-bluetooth-classic, and updated to support the Hexadecimal data communication.

Read data

 const data = await RNBluetoothClassic.readFromDevice(); 

Write data

npm install buffer

const Buffer = require('buffer/').Buffer;

writeData = async (data) => {
    const dataToWrite = new Buffer.from(data, 'hex');
    await RNBluetoothClassic.write(dataToWrite);
  };

About

⚛ Bluetooth classic Android(Bluetooth)/IOS(ExternalAccessory) module for serial communication

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 48.8%
  • Java 27.7%
  • Swift 16.3%
  • Objective-C 3.2%
  • C# 1.4%
  • Ruby 1.4%
  • Other 1.2%