add ip kwarg default value

This commit is contained in:
Onyx and Iris 2025-01-21 16:23:59 +00:00
parent 5299d9ec6b
commit 1742ff839e
2 changed files with 6 additions and 6 deletions

View File

@ -80,10 +80,10 @@ class ManyThings:
def main(): def main():
kind_id = 'banana' KIND_ID = 'banana'
with vban_cmd.api( with vban_cmd.api(
kind_id, ip='gamepc.local', port=6980, streamname='Command1' KIND_ID, ip='gamepc.local', port=6980, streamname='Command1'
) as vban: ) as vban:
do = ManyThings(vban) do = ManyThings(vban)
do.things() do.things()
@ -482,9 +482,9 @@ print(vban.event.get())
You may pass the following optional keyword arguments: You may pass the following optional keyword arguments:
- `ip`: str, ip or hostname of remote machine - `ip`: str='localhost', ip or hostname of remote machine
- `streamname`: str, name of the stream to connect to.
- `port`: int=6980, vban udp port 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 - `pdirty`: boolean=False, parameter updates
- `ldirty`: boolean=False, level updates - `ldirty`: boolean=False, level updates
- `timeout`: int=5, amount of time (seconds) to wait for an incoming RT data packet (parameter states). - `timeout`: int=5, amount of time (seconds) to wait for an incoming RT data packet (parameter states).

View File

@ -23,10 +23,10 @@ class ManyThings:
def main(): def main():
kind_id = 'banana' KIND_ID = 'banana'
with vban_cmd.api( with vban_cmd.api(
kind_id, ip='gamepc.local', port=6980, streamname='Command1' KIND_ID, ip='gamepc.local', port=6980, streamname='Command1'
) as vban: ) as vban:
do = ManyThings(vban) do = ManyThings(vban)
do.things() do.things()