Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 426 Bytes

File metadata and controls

14 lines (9 loc) · 426 Bytes

react-native-ble-plx-data-converter

A helper to convert data to bytes to send through https://github.com/Polidea/react-native-ble-plx

why?

Send data with react-native-ble-plx could be trick, so i decided to create this helper to send commands with Bluetooth LE more easier.

how to?

import { convertToBytes } from 'ble-data-converter';

const command = convertToBytes('yourStringBluetoothCommand');