X-Git-Url: https://git.realraum.at/?p=svn42.git;a=blobdiff_plain;f=bridge-old-sensors-zmq.py;h=6f065d147c2a3fe830d98eefe7316d3de61d88a4;hp=65e5bc9afa07d1463923d6a1041ac7c3ad2e843c;hb=2c075d279f61bf548e22b2715d82d58fc1f16f76;hpb=e03ed77aaa04feef71ba874f15dd5ecd61d5bf26 diff --git a/bridge-old-sensors-zmq.py b/bridge-old-sensors-zmq.py index 65e5bc9..6f065d1 100755 --- a/bridge-old-sensors-zmq.py +++ b/bridge-old-sensors-zmq.py @@ -222,7 +222,7 @@ def exitHandler(signum, frame): pass time.sleep(0.1) try: - zmqsub.close() + zmqpub.close() zmqctx.destroy() except: pass @@ -245,12 +245,12 @@ else: zmqctx = zmq.Context() zmqctx.linger = 0 zmqpub = zmqctx.socket(zmq.PUB) -zmqpub.connect("tcp://wuzzler.realraum.at:4243") +zmqpub.connect("tcp://torwaechter.realraum.at:4243") #listen for sensor data and forward them trackSensorStatus(uwscfg, zmqpub) -zmqsub.close() +zmqpub.close() zmqctx.destroy()