Commit 782b3f58 by Alex

diagrama

parent 4e1e7e81
Showing with 37 additions and 1 deletions
......@@ -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
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment