You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configuración: include/smartvest_config.h (copiar desde .example, no se sube a Git).
Envía JSON por POST a api/iot.php cada SMARTVEST_HTTP_INTERVAL_MS (por defecto 5 s).
Herramientas de desarrollo y calidad
Herramienta
Uso en el repo
GitHub Spec Kit
Carpeta .specify/, skills /speckit-*, specs en specs/
ESLint/Tests
No configurados aún (package.json solo tiene dev/build/preview)
**scripts/deploy-xampp.sh`
Copia el proyecto a htdocs/Smartvest
Comunicación IoT: HTTP (no MQTT)
Aspecto
Detalle
Chaleco → servidor
POST JSON a iot.php
Web → servidor
GET ?deviceId=VEST-001 cada ~2 s
Latencia típica
2–7 s (no tiempo real estricto)
Alternativa futura
MQTT + broker si se necesitan muchos dispositivos o push instantáneo
Dependencias npm principales
"react", "react-dom", "vite", "typescript", "tailwindcss",
"lucide-react", "qrcode.react", "@google/genai"(solo si se usara cliente; hoy la IA va por PHP)