diff --git a/debugMqtt/hw1/main.py b/debugMqtt/hw1/main.py deleted file mode 100644 index a11416c..0000000 --- a/debugMqtt/hw1/main.py +++ /dev/null @@ -1,25 +0,0 @@ -import paho.mqtt.client as mqtt - - -def on_connect(client, userdata, flags, rc): - print("Connected with result code "+str(rc)) - - # Subscribing in on_connect() means that if we lose the connection and - # reconnect then subscriptions will be renewed. - client.subscribe("Rover/Info") - client.subscribe("Rover/Warn") - client.subscribe("Rover/Error") - - -def on_message(client, userdata, msg): - print(msg.topic+" -> "+str(msg.payload)[2:-1]) - - -if __name__ == '__main__': - client = mqtt.Client() - client.on_connect = on_connect - client.on_message = on_message - - client.connect("172.22.64.216", 1883, 60) - - client.loop_forever() diff --git a/debugMqtt/hw1/main_debug.py b/debugMqtt/hw1/main_debug.py deleted file mode 100644 index 70957cd..0000000 --- a/debugMqtt/hw1/main_debug.py +++ /dev/null @@ -1,23 +0,0 @@ -import paho.mqtt.client as mqtt - - -def on_connect(client, userdata, flags, rc): - print("Connected with result code "+str(rc)) - - # Subscribing in on_connect() means that if we lose the connection and - # reconnect then subscriptions will be renewed. - client.subscribe("Rover/Debug") - - -def on_message(client, userdata, msg): - print(msg.topic+" -> "+str(msg.payload)[2:-1]) - - -if __name__ == '__main__': - client = mqtt.Client() - client.on_connect = on_connect - client.on_message = on_message - - client.connect("172.22.64.216", 1883, 60) - - client.loop_forever() diff --git a/debugMqtt/rhede/main.py b/debugMqtt/rhede/main.py deleted file mode 100644 index af65384..0000000 --- a/debugMqtt/rhede/main.py +++ /dev/null @@ -1,27 +0,0 @@ -import paho.mqtt.client as mqtt - - -def on_connect(client, userdata, flags, rc): - print("Connected with result code "+str(rc)) - - # Subscribing in on_connect() means that if we lose the connection and - # reconnect then subscriptions will be renewed. - client.subscribe("Rover/Info") - client.subscribe("Rover/Warn") - client.subscribe("Rover/Error") - client.subscribe("Rover/Info") - - -def on_message(client, userdata, msg): - print(msg.topic+" -> "+str(msg.payload)[2:-1]) - - -if __name__ == '__main__': - client = mqtt.Client() - client.on_connect = on_connect - client.on_message = on_message - - client.username_pw_set("kleiax", password="p?{$_~5%hBM7wrcFkr55KWr#") - client.connect("192.168.1.7", 1883, 60) - - client.loop_forever() diff --git a/debugMqtt/rhede/main_debug.py b/debugMqtt/rhede/main_debug.py deleted file mode 100644 index 27599f1..0000000 --- a/debugMqtt/rhede/main_debug.py +++ /dev/null @@ -1,24 +0,0 @@ -import paho.mqtt.client as mqtt - - -def on_connect(client, userdata, flags, rc): - print("Connected with result code "+str(rc)) - - # Subscribing in on_connect() means that if we lose the connection and - # reconnect then subscriptions will be renewed. - client.subscribe("Rover/Debug") - - -def on_message(client, userdata, msg): - print(msg.topic+" -> "+str(msg.payload)[2:-1]) - - -if __name__ == '__main__': - client = mqtt.Client() - client.on_connect = on_connect - client.on_message = on_message - - client.username_pw_set("kleiax", password="p?{$_~5%hBM7wrcFkr55KWr#") - client.connect("192.168.1.7", 1883, 60) - - client.loop_forever()