From 6236c9648e5955731b2bb58942ba77c64ee4e47c Mon Sep 17 00:00:00 2001 From: kurilova Date: Fri, 6 Sep 2024 09:51:02 +0000 Subject: [PATCH] Change hostname for MQTT service --- modules/ui/src/app/app.module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui/src/app/app.module.ts b/modules/ui/src/app/app.module.ts index 795d4e0d8..75497a351 100644 --- a/modules/ui/src/app/app.module.ts +++ b/modules/ui/src/app/app.module.ts @@ -54,7 +54,7 @@ import { WifiComponent } from './components/wifi/wifi.component'; import { MqttModule, IMqttServiceOptions } from 'ngx-mqtt'; export const MQTT_SERVICE_OPTIONS: IMqttServiceOptions = { - hostname: 'localhost', + hostname: `http://${window.location.hostname}`, port: 9001, };