Things Bus: Difference between revisions

From Pumping Station One
Line 55: Line 55:
     door_socket.connect("tcp://frontdoor.pumpingstationone.org:5556")
     door_socket.connect("tcp://frontdoor.pumpingstationone.org:5556")
     door_socket.connect("tcp://backdoor.pumpingstationone.org:5556")
     door_socket.connect("tcp://backdoor.pumpingstationone.org:5556")
 
   
     # The doors send a lot of types of messages. We only care about "door.state.unlock" messages
     # The doors send a lot of types of messages. We only care about "door.state.unlock" messages
     door_socket.setsockopt(zmq.SUBSCRIBE, b"door.state.unlock")
     door_socket.setsockopt(zmq.SUBSCRIBE, b"door.state.unlock")