Fix endpoint URL in HistoryCharts component and update sensor IDs in main.hpp
This commit is contained in:
@@ -18,7 +18,7 @@ const HistoryCharts = ({ groupId, deviceId }) => {
|
|||||||
if (configError) return <p>Error al cargar configuración: {configError}</p>;
|
if (configError) return <p>Error al cargar configuración: {configError}</p>;
|
||||||
if (!config) return <p>Configuración no disponible.</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 ENDPOINT = config.appConfig.endpoints.GET_DEVICE_HISTORY;
|
||||||
const endp = ENDPOINT
|
const endp = ENDPOINT
|
||||||
.replace(':groupId', groupId)
|
.replace(':groupId', groupId)
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
|
|
||||||
#define GROUP_ID 1
|
#define GROUP_ID 1
|
||||||
|
|
||||||
#define MQ7_ID 1
|
#define MQ7_ID 3
|
||||||
#define BME280_ID 2
|
#define BME280_ID 2
|
||||||
#define GPS_ID 3
|
#define GPS_ID 1
|
||||||
#define MAX7219_ID 1
|
#define MAX7219_ID 1
|
||||||
|
|
||||||
#define DEBUG
|
#define DEBUG
|
||||||
|
|||||||
Reference in New Issue
Block a user