Update SodioHome, add udp listener for the configuration files (InitializeCommunicationToMiddleware)
This commit is contained in:
parent
5fd73f51cc
commit
bbb0d21759
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue