Skip to content
Snippets Groups Projects
Commit b177f56d authored by Oleksandr Husak's avatar Oleksandr Husak
Browse files

heroku deploy, new broker

parent 75cb2407
Branches
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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'
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment