dotintent / react-native-ble-plx

React Native BLE library
Apache License 2.0
3.04k stars 508 forks source link

šŸ› writeCharacteristicWithoutResponseForDevice fails in iOS #1167

Closed PrudhviBanki closed 2 months ago

PrudhviBanki commented 8 months ago

Prerequisites

Expected Behavior

it should give resolve promises result

Current Behavior

writeCharacteristicWithoutResponseForDevice(deviceIdentifier, serviceUUID, characteristicUUID, base64Value, transactionId) not working getting exception

Library version

3.1.2

Device

Iphone13 mini

Environment info

"node": "^19.0.1",
"react": "^18.2.0",
"react-native": "^0.71.0",
"react-native-ble-manager": "^10.1.2",
"react-native-ble-plx": "^3.1.2",

Steps to reproduce

with in for loop

Android working good.

blemanager.writeCharacteristicWithoutResponseForDevice(iOS_DEVICE_ID, "0000XXX-1809-XXXX-1357-65626173746F", "00006722-1809-2101-1357-65626173746F", "base64data").then((response) => { } }).catch((error) => { console.log(write upload exception ${index} :: chunk ${chunk}, error); })

getting issue write upload exception 0 :: chunk 6QUCP+hUN0DuAAAACQAAAAAAAAAAAAABIAANPCRjAwAyVM2rAAAAAAAAAAAAAAAAMC4yLjAuMgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABibGVwcnBoX3dpZmlfY29leAAAAAAAAAAAAAAAAAAAADEzOjQ2OjIyAAAAAAAAAABKdW4gIDUgMjAyMwAAAAAAdjQuNC40LWRpcnR5AAAAAAAAAAAAAAAAAAAAAAAAAAA7hNOMZCrQBXKWjRLQno8hujNCcWms+BDbDfxTWowfoQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA [TypeError: The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type object]

Formatted code sample or link to a repository

NA

Relevant log output

NA

Additional information

No response

PrudhviBanki commented 8 months ago

is repo people active or not?

PrudhviBanki commented 7 months ago

almost weeks ago reported the issue still no response from repo people..

dominik-czupryna-withintent commented 7 months ago

Yes the repo is still active. Could you include what data was passed to the function, because in the test we have for this function there is no error, but an error ([TypeError: The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type object]) suggests that there is a problem with the data itself.

PrudhviBanki commented 6 months ago

base64 data 6QUCP+hUN0DuAAAACQAAAAAAAAAAAAABIAANPCRjAwAyVM2rAAAAAAAAAAAAAAAAMC4yLjAuMgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABibGVwcnBoX3dpZmlfY29leAAAAAAAAAAAAAAAAAAAADEzOjQ2OjIyAAAAAAAAAABKdW4gIDUgMjAyMwAAAAAAdjQuNC40LWRpcnR5AAAAAAAAAAAAAAAAAAAAAAAAAAA7hNOMZCrQBXKWjRLQno8hujNCcWms+BDbDfxTWowfoQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

[TypeError: The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type object]

EmmaZachara commented 5 months ago

Hi @PrudhviBanki, We are still working on this and some other issues, so please hold on a bit longer.

intent-kacper-cyranowski commented 3 months ago

Hi @PrudhviBanki Do you still need help with the issue?

intent-kacper-cyranowski commented 2 months ago

Hi @PrudhviBanki Is your issue still relevant, do you need any help?

intent-kacper-cyranowski commented 2 months ago

Closing due to inactivity