Trangar / artnet_protocol

A 1:1 implementation of the ArtNet protocol, in Rust
MIT License
22 stars 18 forks source link

How to access PortAddress value? #20

Open federicobond opened 2 years ago

federicobond commented 2 years ago

I am a rust beginner so please forgive me if the answer is actually super simple, but I have found no way to access the value from the PortAddress struct. I found some methods to convert numbers to PortAddresses but none to convert PortAddresses back to numbers. Am I missing something? I need this to read the universe value in DMX Output packets.