Bleak Notify does not work with QThread? #1322
ImmanuelT8
started this conversation in
General
Replies: 1 comment 4 replies
-
This doesn't look like a full program so it is hard to see exactly what it going on. However, you certainly can't call asyncio stuff from different threads. The asyncio run loop and all calls to Bleak APIs need to be on a single thread. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, i have an ESP an send 2 array with 100 values to an python app and then print them and also safe it in an excel file via pandas. In this script it work:
ESP: https://github.com/ImmanuelT8/Smart-Health-8/blob/main/BLE/Meilen/Empfange_2_Variablen_via_array_from_ESP_safe_in_exel.ino
Python App: https://github.com/ImmanuelT8/Smart-Health-8/blob/main/BLE/Meilen/Empfange_2_Variablen_via_array_from_ESP_safe_in_exel.py
But if i want it via QThread it does not work. I have 2 functions, first one to update Parameter on ESP after click the button update, this work. Second the same function as in the .py above after click Start, but this does not work. Here the code: https://pastebin.com/Gk9LkTeG
I get: "print("read data start")" and then "Gerät nicht gefunden" Any ideas? Here the function:
Beta Was this translation helpful? Give feedback.
All reactions