From 1742ff839e7688ca5dc905480bb97a7b6a2c95a2 Mon Sep 17 00:00:00 2001 From: Onyx and Iris Date: Tue, 21 Jan 2025 16:23:59 +0000 Subject: [PATCH] add ip kwarg default value --- README.md | 8 ++++---- __main__.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 989e3e0..952e6fe 100644 --- a/README.md +++ b/README.md @@ -80,10 +80,10 @@ class ManyThings: def main(): - kind_id = 'banana' + KIND_ID = 'banana' with vban_cmd.api( - kind_id, ip='gamepc.local', port=6980, streamname='Command1' + KIND_ID, ip='gamepc.local', port=6980, streamname='Command1' ) as vban: do = ManyThings(vban) do.things() @@ -482,9 +482,9 @@ print(vban.event.get()) You may pass the following optional keyword arguments: -- `ip`: str, ip or hostname of remote machine -- `streamname`: str, name of the stream to connect to. +- `ip`: str='localhost', ip or hostname of remote machine - `port`: int=6980, vban udp port of remote machine. +- `streamname`: str='Command1', name of the stream to connect to. - `pdirty`: boolean=False, parameter updates - `ldirty`: boolean=False, level updates - `timeout`: int=5, amount of time (seconds) to wait for an incoming RT data packet (parameter states). diff --git a/__main__.py b/__main__.py index 5dbf100..f5ed0ec 100644 --- a/__main__.py +++ b/__main__.py @@ -23,10 +23,10 @@ class ManyThings: def main(): - kind_id = 'banana' + KIND_ID = 'banana' with vban_cmd.api( - kind_id, ip='gamepc.local', port=6980, streamname='Command1' + KIND_ID, ip='gamepc.local', port=6980, streamname='Command1' ) as vban: do = ManyThings(vban) do.things()