Hi, im have problem in ubluetooth module.
Standard in the characteristics to write is: FLAG_WRITE (default with reposnse) how to call with without reponse?
Or maybe you know another library that handles it?
Best Regards.
ubluetooth - FLAG_WRITE (without response) ?
Re: ubluetooth - FLAG_WRITE (without response) ?
Code: Select all
_WRITE_RESPONSE = const(1)
ble.gattc_write(conn_handle, value_handle, data, _WRITE_RESPONSE)
Re: ubluetooth - FLAG_WRITE (without response) ?
I mean gatt server not client...
Re: ubluetooth - FLAG_WRITE (without response) ?
What are other recommendable ble library?
Or maybe you can solve this problem using ubluetooth?
Or maybe you can solve this problem using ubluetooth?
Re: ubluetooth - FLAG_WRITE (without response) ?
Can you clarify what you mean by writing from a gatt server? Maybe can you link to how this is implemented in another BLE library on another platform and I can see how to map that to ubluetooth?
My understanding is that a gatt server notifies or indicates the client when it wants the client to see the new value. The writes are purely local (waiting for the client to read them).
My understanding is that a gatt server notifies or indicates the client when it wants the client to see the new value. The writes are purely local (waiting for the client to read them).
Re: ubluetooth - FLAG_WRITE (without response) ?
My understanding is that CircuitPython uses the same Characteristic class for both client-side and server-side characteristics.prem111 wrote: ↑Fri Feb 28, 2020 9:20 ame.g: write_no_response
Https://circuitpython.readthedocs.io/en ... istic.html
But note that the thing you linked to is a property "bool write_no_response". And it says " Clients may write this characteristic; no response will be sent back". My understanding is that only clients can issue a write_no_response operation.
So perhaps I misunderstood your question though -- do you want to create a characteristic on a client that tells the server that it's allowed to do a write_no_response? In which case, in addition to bluetooth.FLAG_WRITE, you can define your own
Code: Select all
_FLAG_WRITE_NO_RESPONSE = const(0x04)
Re: ubluetooth - FLAG_WRITE (without response) ?
It works! Thank you very much for help !!!