-
-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error_function_call #264
Comments
@lvrnls did you discover the service/char before? |
@farfromrefug Yes I think that part should be ok, I used the serviceUUIDs option in the connect method like this
Is that what you meant ? |
@lvrnls no it is not done automatically. Look a the typings for connect options. THere is one to discover all services. Though it will be slower. The best way is to call discoverServices once connected and discover only the services you need |
Ok thanks, I did
before trying to write or read but I still got the issue |
@lvrnls look at the error maybe try to pass |
@farfromrefug Thank you for your help anyway, I've contacted the manufacturer to see if something comes from him. |
Hi,
I'm trying to write data to a characteristic of a BLE device (following the doc I have for this) but I always get an error :
Here is what I try to do in the onConnected method :
I'm having a similar issue with the read function
JS: read error: [BluetoothError]:error_function_call, readCharacteristic, undefined, {"peripheralUUID":"A4:C1:38:FD:D2:38","serviceUUID":"1000","characteristicUUID":"1002"}
Here is my code for that
I tried to read/write to those characteristics with a Java application and it's working so I guess this is a plugin issue ? Can you help me with that if it is ?
I use Nativescript with Angular and the phone that connects to the device is on Android 12.
Thanks in advance !
The text was updated successfully, but these errors were encountered: