From b177f56d786f3fe6e5f77b35c2572f532b7ddbe1 Mon Sep 17 00:00:00 2001
From: Oleksandr Husak <oleksandr.husak@mailbox.tu-dresden.de>
Date: Fri, 15 Oct 2021 13:05:34 +0200
Subject: [PATCH] heroku deploy, new broker

---
 README.md                            | 15 +++++++++++++--
 src/environments/environment.prod.ts |  4 ++--
 2 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index dec866c..a48bbd6 100644
--- a/README.md
+++ b/README.md
@@ -2,11 +2,22 @@
 
 ## Messages
 
-- Public MQTT brocker from [hivemq](https://www.hivemq.com/public-mqtt-broker/).
+- Public MQTT broker and client from [hivemq](https://www.hivemq.com/public-mqtt-broker/). MQTT client with a standart settings.
     - `ipos/client/position`: relative position of an agent to a curent root point
     - `ipos/client/root`: update a root point. Default is `{"latitude": 51.02545, "longitude": 13.72295}`.
 - Messages description: [SimpleSceneIntegration Interface](https://md.inf.tu-dresden.de/IPos_IFSimpleSceneIntegration).
 
+### Online app
+
+Deployed application is subscribed to similar messages but from a different broker. 
+To publish messages you can use the client from HigeMQ but change the connection settings
+
+- Link: https://ipos-osm.herokuapp.com/
+
+Connection settings
+- host: `broker.emqx.io`
+- port: `8084`
+
 
 ## Run
 - 1. Install all dependency and run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
@@ -14,7 +25,7 @@
         1. `docker build -t frontend-osm .`
         2. `docker run -p 4200:80 frontend-osm:latest`
         3. Navigate to `http://localhost:4200/`
-- 2. Send messages to a `hivemq` public brocker
+- 2. Send messages to a `hivemq` public broker
     - topic `ipos/client/position`
         - new positions
         - ```json
diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts
index 2c54d38..83390a5 100644
--- a/src/environments/environment.prod.ts
+++ b/src/environments/environment.prod.ts
@@ -20,8 +20,8 @@ export const environment = {
 };
 
 export const MQTTconfig: IMqttServiceOptions = {
-  hostname: 'broker.hivemq.com',
-  port: 8000,
+  hostname: 'broker.emqx.io',
+  port: 8084,
   protocol: 'wss',
   path: '/mqtt'
 };
-- 
GitLab