How to send via bleak to ESP32 via BLE? Sketch does not work! #1300
ImmanuelT8
started this conversation in
General
Replies: 1 comment 1 reply
-
The pastbin links aren't working for me. Could you just paste the code here as a comment? Like this:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I manage to read using Notify and Bleak, but I just can't successfully send it to my ESP via BLE via Bleak. Tried this in a very simple example, here an INT of 5 should be sent to my BLE and when the variable is set to 5 then the internal LED should go on and the variable should be sent back to my Python console, but I get always 0 on my console and the LED does not come on. Here are the examples:
Small Test Python: https://pastebin.com/UikEpPZw
Small Test ESP: https://pastebin.com/5Az1u6Ys
That would be my real program, here I want to change several values on the sensor, although I'm not sure about the data type, it's text with numbers:
Normal Test Python: https://pastebin.com/YesUKnEC
Normal Test ESP: https://pastebin.com/40Uf9ayK
Haven't gotten it to work for 2 days, I would be grateful for any tip!
Beta Was this translation helpful? Give feedback.
All reactions