diff --git a/src/SparkplugNet/Core/Node/SparkplugNodeBase.cs b/src/SparkplugNet/Core/Node/SparkplugNodeBase.cs index 27df22d..a2b7adb 100644 --- a/src/SparkplugNet/Core/Node/SparkplugNodeBase.cs +++ b/src/SparkplugNet/Core/Node/SparkplugNodeBase.cs @@ -364,6 +364,12 @@ private async Task PublishNodeAndDeviceBirthsInternal() // Increment the sequence number. this.IncrementLastSequenceNumber(); + // When a primary host application is provided, wait before sending NBIRTH and DBIRTH. + if (!string.IsNullOrEmpty(this.Options.ScadaHostIdentifier)) + { + return; + } + // Publish the message. await this.client.PublishAsync(nodeBirthMessage, this.Options.CancellationToken.Value);