Update SodioHome, add udp listener for the configuration files (InitializeCommunicationToMiddleware)

This commit is contained in:
Noe 2025-08-06 11:08:37 +02:00
parent 5fd73f51cc
commit bbb0d21759
1 changed files with 2 additions and 1 deletions

View File

@ -54,6 +54,8 @@ public static class Program
{ {
_growattChannel = new SerialPortChannel(Port, BaudRate, Parity, DataBits, StopBits); _growattChannel = new SerialPortChannel(Port, BaudRate, Parity, DataBits, StopBits);
InitializeCommunicationToMiddleware();
while (true) while (true)
{ {
try try
@ -251,7 +253,6 @@ public static class Program
_subscribedToQueue = RabbitMqManager.SubscribeToQueue(currentSalimaxState, s3Bucket, VpnServerIp); _subscribedToQueue = RabbitMqManager.SubscribeToQueue(currentSalimaxState, s3Bucket, VpnServerIp);
} }
//If already subscribed to the queue and the status has been changed, update the queue //If already subscribed to the queue and the status has been changed, update the queue
if (!subscribedNow && _subscribedToQueue && currentSalimaxState.Status != _prevSodistoreAlarmState) if (!subscribedNow && _subscribedToQueue && currentSalimaxState.Status != _prevSodistoreAlarmState)
{ {