Major architectural improvements to make Bridge resilient: 1. Bridge Autonomy (CRITICAL FIX): - Remove sys.exit(1) when Odoo config fails (iot_bridge/main.py) - Bridge now runs autonomously with local config.yaml - No longer crashes in endless restart loop when Odoo is down - Odoo connection check becomes optional warning, not blocker 2. Event Type Compatibility: - Add 'session_ended' to controller event processing (iot_api.py) - Bridge sends 'session_ended', controller expected 'session_stopped' - Now accepts both event types for closing sessions 3. Event Type Support: - Add 'session_ended' to iot_event model selection (iot_event.py) - Fixes 500 errors when Bridge sends session_ended events 4. Architecture Documentation: - Update FEATURE_REQUEST with new PUSH architecture (Odoo -> Bridge) - Update IMPLEMENTATION_PLAN with Phase 3 refactoring plan - Document autonomous mode and config-push design - Remove obsolete documentation files Tested Scenarios: - ✅ Bridge starts and runs without Odoo - ✅ Session detection works autonomously - ✅ Events queue when Odoo is down - ✅ Queue automatically processes when Odoo returns - ✅ Sessions close correctly with session_ended events This enables the next phase: Odoo pushing config to Bridge via HTTP API. |
||
|---|---|---|
| .. | ||
| open_workshop_mqtt | ||