Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Alejandro Martínez Muñoz
/
ProyectoRobotAmbientales
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
782b3f58
authored
May 13, 2024
by
Alex
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
diagrama
parent
4e1e7e81
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
1 deletions
README.md
src/app/app.module.ts
README.md
View file @
782b3f58
...
...
@@ -25,3 +25,38 @@ Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To u
## Further help
To get more help on the Angular CLI use
`ng help`
or go check out the
[
Angular CLI Overview and Command Reference
](
https://angular.io/cli
)
page.
Diagrama de secuencia:
```
mermaid
sequenceDiagram
participant U as Usuario (Aplicación cliente)
participant C as Aplicación Cliente
participant B as BackEnd
participant R as Robot
participant S as Servidor MQTT
S->>S: Publica mapa (aplicacion suscrita)
S->>C: Recibe mapa
C->>U: Muestra mapa
C->>B: Enviar mapa
B->>B: Procesa mapa
U->>C: Crea pedido
C->>B: Manda id casillas
B->>B: Genera camino
B->>S: Publica camino
S->>R: Recibe camino
alt Si hay pedidos en cola
R->>R: Realiza pedido
loop
R->>S: Publica posicion
S->>C: Recibe posicion
C->>U: Muestra posicion
end
R->>S: Publica finalizacion
S->>C: Recibe finalizacion
C->>U: Muestra notificacion
else
end
\ No newline at end of file
src/app/app.module.ts
View file @
782b3f58
...
...
@@ -14,7 +14,7 @@ import { HttpClientModule } from '@angular/common/http';
// Configuración de MQTT
export
const
MQTT_SERVICE_OPTIONS
:
IMqttServiceOptions
=
{
hostname
:
'192.168.
171.45
'
,
//Nombre de host o ip
hostname
:
'192.168.
0.140
'
,
//Nombre de host o ip
port
:
9001
,
// Puerto de conexión
path
:
'/mqtt'
,
protocol
:
'ws'
// Usar 'wss' para conexiones seguras
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment