1
0

Fix endpoint URL in HistoryCharts component and update sensor IDs in main.hpp

This commit is contained in:
Jose
2025-05-10 08:52:21 +02:00
parent 8dc2787b80
commit b463b866ce
2 changed files with 3 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ const HistoryCharts = ({ groupId, deviceId }) => {
if (configError) return <p>Error al cargar configuración: {configError}</p>;
if (!config) return <p>Configuración no disponible.</p>;
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)

View File

@@ -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