From 25f3a68f39a9618549ea1fbe7c7b06dd7306af8b Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sat, 26 Dec 2020 15:12:03 -0600 Subject: Rename send, start_repeat, and stop_repeat This now aligns exactly with the calls to lircd. --- README.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'README.rst') diff --git a/README.rst b/README.rst index 5a76f32..d38c80d 100644 --- a/README.rst +++ b/README.rst @@ -109,11 +109,11 @@ Sending IR import lirc client = lirc.Client() - client.send("my-remote-name", "KEY_POWER") - client.send("my-remote-name", "KEY_3", repeat_count=2) + client.send_once("my-remote-name", "KEY_POWER") + client.send_once("my-remote-name", "KEY_3", repeat_count=2) -With sending IR, we can use the `send` method and optionally, +With sending IR, we can use the `send_once` method and optionally, send multiple by using the `repeat_count` keyword argument. Handling Errors @@ -126,7 +126,7 @@ Handling Errors client = lirc.Client() try: - client.send('some-remote', 'key_power') + client.send_once('some-remote', 'key_power') except lirc.LircdCommandFailureError as error: print('The command we sent failed! Check the error message') print(error) -- cgit v1.2.3