Python Forum
action on MQTT while long loop is running
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
action on MQTT while long loop is running
#5
(Oct-05-2018, 09:46 PM)Larz60+ Wrote: hate to point to stackoverflow, but this looks like what you need for your interrupts
https://stackoverflow.com/questions/2395...read-event

It is at very specific points that I want the interrupt to happen and the roll back is dependent on exactly how far the process has come, so I decided to do it manually by doing a
while not Jacuzzi_q.empty()
at the specific points in the code.
Reply


Messages In This Thread
RE: action on MQTT while long loop is running - by runboy - Oct-05-2018, 11:57 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pixel color and action Sartre 4 2,168 Apr-13-2023, 03:26 AM
Last Post: Sartre
Question Running an action only between certain times alexbca 9 1,818 Mar-15-2023, 04:21 PM
Last Post: deanhystad
  add mqtt feature to existing code Positron79 0 612 Jan-31-2023, 05:56 PM
Last Post: Positron79
  Checkbox itens with a button to run action Woogmoog 3 985 Dec-19-2022, 11:54 AM
Last Post: Woogmoog
Question Running an action only if time condition is met alexbca 5 1,383 Oct-27-2022, 02:15 PM
Last Post: alexbca
  help RuntimeError: no running event loop marpaslight 5 3,840 Oct-18-2022, 10:04 PM
Last Post: marpaslight
  Mqtt Shiri 0 1,312 Dec-07-2021, 02:01 PM
Last Post: Shiri
  bleak library RuntimeError: This event loop is already running alice93 3 4,171 Sep-30-2021, 08:06 AM
Last Post: alice93
  loop running indefinitely shantanu97 6 2,641 Sep-29-2021, 08:03 PM
Last Post: deanhystad
  Running A Loop Until You See A Particular Result knight2000 6 31,781 Sep-04-2021, 08:55 AM
Last Post: knight2000

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020