diff --git a/configuration/amd64/docker-compose.yml b/configuration/amd64/docker-compose.yml index 40449cfeb..0c9d5feb2 100755 --- a/configuration/amd64/docker-compose.yml +++ b/configuration/amd64/docker-compose.yml @@ -38,7 +38,6 @@ services: - db environment: - MYSQL_PASSWORD=/run/secrets/mysql_password - - SIMULATION_MODE=true - INFRASTRUCTURE_ID=rsu_ - INFRASTRUCTURE_NAME= secrets: diff --git a/src/v2i-hub/TelematicBridgePlugin/src/TelematicBridgePlugin.cpp b/src/v2i-hub/TelematicBridgePlugin/src/TelematicBridgePlugin.cpp index d32b36000..44a6738f2 100644 --- a/src/v2i-hub/TelematicBridgePlugin/src/TelematicBridgePlugin.cpp +++ b/src/v2i-hub/TelematicBridgePlugin/src/TelematicBridgePlugin.cpp @@ -8,8 +8,8 @@ namespace TelematicBridge TelematicBridgePlugin::TelematicBridgePlugin(const string &name) : PluginClient(name) { _telematicUnitPtr = make_unique(); - _unitId = sim::get_sim_config("INFRASTRUCTURE_ID"); - _unitName = sim::get_sim_config("INFRASTRUCTURE_NAME"); + _unitId = std::getenv("INFRASTRUCTURE_ID"); + _unitName = std::getenv("INFRASTRUCTURE_NAME"); UpdateConfigSettings(); AddMessageFilter("*", "*", IvpMsgFlags_None); AddMessageFilter("J2735", "*", IvpMsgFlags_RouteDSRC);