[Xal-users] Interrupting poll
Brought to you by:
sbarron
|
From: Kevin S. <Kev...@th...> - 2001-03-14 02:49:27
|
I am using the xal functions through the pyX10 interface and I am having trouble implementing a rather simple scenario. I implement a poll in a while loop to track all traffic on a CM11 as follows: c = xal.x10_controller_open(xal.X10_CONTROLLER_CM11) x = xal.x10_event_t() while xal.x10_poll(c, x, None): <<Do operations here.>> This works great. However, I have a cron job that invokes X10 commands such as xal.x10_on(), xal.x10_off(), etc. The problem is that I don't know how to interrupt the above while loop to allow me to send these commands. The xal.x10_on() command just hangs. How can I get around this? Kevin Smith Kev...@th... |