Skip to content

Commit

Permalink
Renaming variable to reflect its use.
Browse files Browse the repository at this point in the history
  • Loading branch information
barnstee committed May 17, 2024
1 parent ee2b157 commit f18cc9f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Controllers/ConfigController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public IActionResult Apply(Settings settings, Settings.BrokerResolver brokerReso
_brokerClient.Connect();

// check if we need a second broker
if (Settings.Instance.UseAltBrokerForReceivingUABinaryOverMQTT)
if (Settings.Instance.UseAltBrokerForReceivingUAOverMQTT)
{
_alternativeBrokerClient = brokerResolver("MQTT");
_alternativeBrokerClient.Connect(true);
Expand Down
2 changes: 1 addition & 1 deletion Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public async void Save()

public bool UseAltBrokerForMetadata { get; set; } = false;

public bool UseAltBrokerForReceivingUABinaryOverMQTT { get; set; } = false;
public bool UseAltBrokerForReceivingUAOverMQTT { get; set; } = false;

public string AltBrokerUrl { get; set; } = string.Empty;

Expand Down
2 changes: 1 addition & 1 deletion Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public void Configure(IApplicationBuilder app,
broker.Connect();
// check if we need a second broker
if (Settings.Instance.UseAltBrokerForReceivingUABinaryOverMQTT)
if (Settings.Instance.UseAltBrokerForReceivingUAOverMQTT)
{
altBroker = brokerResolver("MQTT");
altBroker.Connect(true);
Expand Down
6 changes: 3 additions & 3 deletions Views/Config/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@
@Html.TextBox("BrokerMetadataTopic", @Model.BrokerMetadataTopic, new { style = "width:100%;background-color:grey;color:white;" })<br />
</p>
<p>
Use Alternative Broker For OPC UA Metadata Messages (must not be enabled in conjunction with Use Alt Broker For Receiving UABinary Over MQTT)<br />
Use Alternative Broker For OPC UA Metadata Messages (must not be enabled in conjunction with Use Alt Broker For Receiving UA Over MQTT)<br />
@Html.CheckBox("UseAltBrokerForMetadata", @Model.UseAltBrokerForMetadata)<br />
</p>
<p>
Use Alternative Broker For Receiving OPC UA PubSub Binary Over MQTT Messages (must not be enabled in conjunction with Use Al tBroker For Metadata)<br />
@Html.CheckBox("UseAltBrokerForReceivingUABinaryOverMQTT", @Model.UseAltBrokerForReceivingUABinaryOverMQTT)<br />
Use Alternative Broker For Receiving OPC UA PubSub Over MQTT Messages (must not be enabled in conjunction with Use Alt Broker For Metadata)<br />
@Html.CheckBox("UseAltBrokerForReceivingUAOverMQTT", @Model.UseAltBrokerForReceivingUAOverMQTT)<br />
</p>
<p>
Alternative Broker URL<br />
Expand Down

0 comments on commit f18cc9f

Please sign in to comment.