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