Sending data in chunks using react-native-ble-plx
I have this simple function which writes some data to a characteristic:
export const writeAuthenticationCharacteristic = async (
device: Device,
value: string,
) => {
const valueToWrite = Buffer.from(value, 'hex').toString('base64');
await device.writeCharacteristicWithResponseForService(
SERVICE_AUTHENTICATION_UUID,
CHARACTERISTIC_AUTHENTICATION_UUID,
valueToWrite,
);
};
Where the value is 32 byte data, but the limit on the receiving side is 20 bytes, so I would need...