Skip to content

Opening a connection

Rubin Raithel edited this page Oct 5, 2019 · 3 revisions

How can I connect to the DMXServer?

In order to connect to the server you should create a new DMXClient instance and pass the name of the name dpipe you want to use. (This must be the same as passed to the DMXServer with the '-n' flag)

dmxClient = DMXClient(namedPipe_name)

After you created a new instance of the DMXClient you need to connect it to the named pipe using .connect()

dmxClient.connect(verbose=False)

Be considerate with when to execute .connect() as it will block until it connected to the Server.
The 'verbose' argument enables verbose output.

Clone this wiki locally