ESP32 micropython BLE connections #9704
Unanswered
mmx64
asked this question in
Using MicroPython
Replies: 1 comment 6 replies
-
What is BLEX?
gattc_write takes a connection handle and a value handle. It looks like you're passing the UUID of the characteristic in place of the value handle. You need to use the value handle from the _IRQ_GATTC_CHARACTERISTIC_RESULT event. https://docs.micropython.org/en/latest/library/bluetooth.html#bluetooth.BLE.gattc_write |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, im trying to connect to a BLE device
just for testing purpuses i writed a simple class
and result to this code
BX.scan()
Found device SolarLife 0 b'\x04\x7f\x0e\xa1\xec`' #found my device
BX.do_connect()
BX._ble.gattc_discover_services(BX._conn_handle)
and in event 9 _IRQ_GATTC_SERVICE_RESULT
self._ble.gattc_discover_characteristics(self._conn_handle, start_handle, end_handle)
I did some BLE sniffing between android my device
so im trying to send the same command like this
BX._ble.gattc_write(BX._conn_handle, 0xFF02,b'\xfe\x04\x30\x61\x00\x3c\xba\xca' , True)
and i get the result
any idea what im dooing wrong?
Beta Was this translation helpful? Give feedback.
All reactions