ESP32 AIOBLE writing byte array from client fails #16038
Unanswered
aaronsaray
asked this question in
ESP32
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello - apologies if any of these words aren't correct (programmer, just not a Python one) - also lmk if I need to move this somewhere else.
I am trying to connect to a BLE device (Bedjet) and turn on the fan. I have been able to do this with nrf Connect on an android (I'm on a mac - apologies for the screenshots here).
I believe from trial and error, I have to send a bytearray of 1, 2 to the write characteristic. I connect to the service, get the characteristic, and then write to it.
When I run this code, the bedjet device does not respond. (I have been able to query it for other values, so I know I can at least read characteristics - and the characteristic I'm writing to does have the write permission)
Here is my code to demonstrate this issue:
I did this with nRF connect. Here is a picture of how I entered the 'byte array'
And then here is a screenshot of the debug logs from the logger. This worked.
I'm sure I'm missing something simple - but I've tried so many different options for the formatting. Any help would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions