Dev1an / Swift-Atem

Blackmagic Design Atem network protocol implementation in swift 5.1 using NIO 2
MIT License
58 stars 27 forks source link

Is there an example of sending a command to Atem? #2

Closed CattivoLe closed 4 years ago

Dev1an commented 4 years ago

To send a message to the atem start with the example from the readme.md :

let controller = try Controller(ipAddress: "10.1.0.67")

Then call send(message:) on the controller:

controller.send(message: ChangeTransitionPosition(to: 5000))

Please let me know if this works... because I didn't try out this sample code.

CattivoLe commented 4 years ago

Thanks, this works great!!

Dev1an commented 4 years ago

OK I will add it to the readme then. When going through the docs I saw that the constructors for most of the other messages were not public yet (for example there is no public init for ChangePreviewBus). Would you like to add this, test it and create a pull request for that?

CattivoLe commented 4 years ago

I would very much like to add this, but unfortunately I do not quite yet understand how to do it,,