Skip to content
Snippets Groups Projects
Commit 26340ea4 authored by shinedday's avatar shinedday
Browse files

update broker ip

parent 1ad5d589
No related branches found
No related tags found
No related merge requests found
...@@ -73,12 +73,15 @@ def experiment_load(request): ...@@ -73,12 +73,15 @@ def experiment_load(request):
def experiment_start(request): def experiment_start(request):
broker_ip = "192.168.236.209" broker_ip = "192.168.124.209"
ssh = get_ssh_client() ssh = get_ssh_client()
experiment_path = str(settings.MEDIA_ROOT) + "current_experiment/" + Experiment.objects.get(status="Selected").name experiment_path = str(settings.MEDIA_ROOT) + "current_experiment/" + Experiment.objects.get(status="Selected").name
# Connect to the broker # Connect to the broker
global client
client.disconnect()
client = MQTTClient(client_id="django-ihm")
client.username_pw_set(username="goyon", password="mosquitto") client.username_pw_set(username="goyon", password="mosquitto")
client.connect(host=broker_ip) client.connect(host=broker_ip)
client.loop_start() client.loop_start()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment