mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-04 04:14:58 +00:00
changed ip
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
import paho.mqtt.client as mqtt
|
||||
from flask import Flask
|
||||
from flask_mqtt import Mqtt
|
||||
|
||||
app = Flask(__name__)
|
||||
mqtt = Mqtt(app)
|
||||
def on_connect(client, userdata, flags, rc):
|
||||
print("Connected with result code " + str(rc))
|
||||
client.subscribe("move")
|
||||
@@ -13,5 +16,5 @@ client = mqtt.Client()
|
||||
client.on_connect = on_connect
|
||||
client.on_message = on_message
|
||||
|
||||
client.connect("ishak.ishakpi.ddns.net", 83, 60)
|
||||
client.connect("145.109.226.204", 83, 60)
|
||||
client.loop_forever()
|
Reference in New Issue
Block a user