We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simple test case (note requires hardware) will silently fail, devices will not change state:
#!/usr/bin/env python3 import threading import x10_any #x10_any.default_logger.setLevel(x10_any.logging.DEBUG) # DEBUG class X10(threading.Thread): def __init__(self, house_code, house_num): threading.Thread.__init__(self) self.house_code = house_code self.house_num = house_num #print('%r' % ((self.house_code, self.house_num),)) def run(self): # TODO use same device, probably not? dev = x10_any.FirecrackerDriver() #dev = x10_any.FirecrackerDriver('COM11') #dev = x10_any.FirecrackerDriver('/dev/ttyUSB0') #print('%r ON' % ((self.house_code, self.house_num),)) #print('%r OFF' % ((self.house_code, self.house_num),)) dev.x10_command(self.house_code, self.house_num, x10_any.ON) dev.x10_command(self.house_code, self.house_num, x10_any.OFF) # TODO there are better ways than this.... c4 = X10('C', 4) c6 = X10('C', 6) c4.start() c6.start() # wait to stop """ c4.join() c6.join() """
The text was updated successfully, but these errors were encountered:
Issue #2 Make builtin Firecracker cm17a module support thread safe
a436608
Fixed by a436608
Sorry, something went wrong.
No branches or pull requests
Simple test case (note requires hardware) will silently fail, devices will not change state:
The text was updated successfully, but these errors were encountered: