From b463b866ce1403b69d94e7d444d68aeb1b64eb9d Mon Sep 17 00:00:00 2001 From: Jose Date: Sat, 10 May 2025 08:52:21 +0200 Subject: [PATCH] Fix endpoint URL in HistoryCharts component and update sensor IDs in main.hpp --- frontend/src/components/HistoryCharts.jsx | 2 +- hardware/include/main.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/HistoryCharts.jsx b/frontend/src/components/HistoryCharts.jsx index a217207..214bbe0 100644 --- a/frontend/src/components/HistoryCharts.jsx +++ b/frontend/src/components/HistoryCharts.jsx @@ -18,7 +18,7 @@ const HistoryCharts = ({ groupId, deviceId }) => { if (configError) return

Error al cargar configuración: {configError}

; if (!config) return

Configuración no disponible.

; - const BASE = config.appConfig.endpoints.DATA_URL; + const BASE = config.appConfig.endpoints.LOGIC_URL; const ENDPOINT = config.appConfig.endpoints.GET_DEVICE_HISTORY; const endp = ENDPOINT .replace(':groupId', groupId) diff --git a/hardware/include/main.hpp b/hardware/include/main.hpp index 5308fff..80e6b1f 100644 --- a/hardware/include/main.hpp +++ b/hardware/include/main.hpp @@ -6,9 +6,9 @@ #define GROUP_ID 1 -#define MQ7_ID 1 +#define MQ7_ID 3 #define BME280_ID 2 -#define GPS_ID 3 +#define GPS_ID 1 #define MAX7219_ID 1 #define DEBUG