Skip to content

Commit

Permalink
Add sACN detektion
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-dmxc committed Nov 29, 2023
1 parent b7595f7 commit 7c89d06
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
16 changes: 16 additions & 0 deletions ArtNetSharp/Communication/RemoteClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,21 @@ private set
onPropertyChanged();
}
}
private bool isSACNCapable;
public bool IsSACNCapable
{
get
{
return isSACNCapable;
}
private set
{
if (isSACNCapable == value)
return;
isSACNCapable = value;
onPropertyChanged();
}
}

private ArtPollReply root;
public ArtPollReply Root
Expand All @@ -178,6 +193,7 @@ public ArtPollReply Root
this.IsDHCPCapable = root.Status.HasFlag(ENodeStatus.DHCP_ConfigurationSupported);
this.IsWebConfigurationCapable = root.Status.HasFlag(ENodeStatus.WebConfigurationSupported);
this.IsArtNet4Capable = root.Status.HasFlag(ENodeStatus.NodeSupports15BitPortAddress);
this.IsSACNCapable = root.Status.HasFlag(ENodeStatus.NodeSupportArtNet_sACN_Switching);
}
}
private ConcurrentDictionary<int, RemoteClientPort> ports= new ConcurrentDictionary<int, RemoteClientPort>();
Expand Down
3 changes: 2 additions & 1 deletion ArtNetSharp/Misc/Enums/EGoodOutput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ namespace ArtNetSharp
[Flags]
public enum EGoodOutput : ushort
{
None=0,
OutputArtNet= 0b00000000,
OutputSACN = 0b00000001,
MergeModeIsLTP = 0b00000010,
DMX_OutputShortCircuit = 0b00000100,
MergingArtNetData = 0b00001000,
Expand Down

0 comments on commit 7c89d06

Please sign in to comment.