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

@ -53,6 +53,8 @@ public static class Program
public static async Task Main(String[] args)
{
_growattChannel = new SerialPortChannel(Port, BaudRate, Parity, DataBits, StopBits);
InitializeCommunicationToMiddleware();
while (true)
{
@ -250,7 +252,6 @@ public static class Program
_prevSodistoreAlarmState = currentSalimaxState.Status;
_subscribedToQueue = RabbitMqManager.SubscribeToQueue(currentSalimaxState, s3Bucket, VpnServerIp);
}
//If already subscribed to the queue and the status has been changed, update the queue
if (!subscribedNow && _subscribedToQueue && currentSalimaxState.Status != _prevSodistoreAlarmState)