Loading
Fixes #15: Update MQTT subscription scope and implement dynamic V2X message parsing
This commit addresses the restrictive MQTT subscription and hardcoded notification logic in the VIS Traffic Manager. Changes introduced: - Upgraded the MQTT subscription wildcard from '+' to '#' to properly capture deeply nested hierarchical V2X sub-topics. - Removed the hardcoded '3gpp/v2x/obu/vam' topic check in the message receiver. - Implemented a dynamic topic parser that strictly adheres to the ETSI GS MEC 030 specification (Section 6.5.14). The parser now accurately extracts the 'stdOrganization', 'msgType', and 'msgProtocolVersion' directly from the MQTT topic suffix. - Created a comprehensive lookup map utilizing the exact ETSI TS 102 894-2 integer constants (e.g., CAM=2, DENM=1, VAM=16), enabling native support for all 20 standardized V2X message types instead of relying on a hardcoded VAM value. - Implemented robust fallback mechanisms to safely apply default values if publishers utilize abbreviated legacy topic structures.