Camera data model
Each camera is represented by the following fields:Camara.cs
| Field | Type | Description |
|---|---|---|
Titulo | string | Human-readable label identifying the camera’s location, such as Cámara del piso 1. Displayed in the camera list. |
IP | string | The IP address used to reach the camera on the network. Supports both IPv4 and IPv6 addresses. |
Ruta | string | The file system path where images captured by this camera are stored. |
EstaConectada | bool | Indicates whether the camera currently has network connectivity. Corresponds to requirement RF_018. |
TextoBotonConexion | string (derived) | Displays “Conectada” when EstaConectada is true, and “Desconectada” when it is false. This value is computed automatically and is not stored. |
Connectivity alerts on load (RF_018)
When the Cámaras screen loads, the application runsInicializarCamaras(), which iterates through every configured camera and checks its EstaConectada value. For any camera that is offline, the application immediately shows a warning dialog:
Advertencia: La no tiene conectividad.You will see one dialog per disconnected camera, so if multiple cameras are offline you will receive multiple sequential warnings.
Configured cameras
The following cameras are configured in the current installation. All four cameras use IPv6 addressing:| Título | IP address | Status |
|---|---|---|
| Cámara del piso 1 | 2001:0db8:85a3:0000:0000:8a2e:0370:7334 | Connected |
| Cámara del piso 2 | 2001:0db8:85a3:0000:0000:8a2e:0370:7334 | Connected |
| Cámara del piso 3 | 2001:0db8:85a3:0000:0000:8a2e:0370:7334 | Disconnected |
| Cámara del piso 4 | 2001:0db8:85a3:0000:0000:8a2e:0370:7334 | Connected |
Cámara del piso 3 is currently offline and will trigger a connectivity warning each time the screen loads until its connection is restored.
IPv6 support
All cameras in the default configuration use IPv6 addresses in full notation (e.g.,2001:0db8:85a3:0000:0000:8a2e:0370:7334). The IP field also accepts IPv4 addresses if your network infrastructure requires them. When entering or updating an IP address:
- For IPv6, use the full 128-bit colon-separated hexadecimal format.
- For IPv4, use standard dot-decimal notation (e.g.,
192.168.1.100). - Do not include port numbers in the
IPfield.
Updating camera configuration
You can re-validate a camera’s IP address and save updated settings directly from the camera list.Locate the camera in the list
The ListaCamaras control displays all configured cameras. Find the camera whose settings you want to update.
Edit the IP or path
Modify the IP address or Ruta (storage path) fields for the selected camera entry.
Connection status indicator
Each camera entry in the list displays a status button whose label is driven by theTextoBotonConexion derived property:
Conectada
The camera is reachable on the network. No action is required.
Desconectada
The camera cannot be reached. A warning was shown when the screen loaded. Investigate the camera’s network connection and update its IP address if needed, then click Actualizar to re-validate.