diff --git a/README.md b/README.md index dec866c946bd662ee91c652f8566263c6a62e38e..a48bbd6523fe44052fa4f2a6d763f50f90e4c661 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 2c54d386a530891356978938e4d71adbb2dc081f..83390a5bf0ec758e5d2afa81f98854119057f92c 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' };