summaryrefslogtreecommitdiffstats
path: root/README.rst
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2020-12-26 15:12:03 -0600
committerEugene Triguba <eugenetriguba@gmail.com>2020-12-26 15:12:03 -0600
commit25f3a68f39a9618549ea1fbe7c7b06dd7306af8b (patch)
tree7327fa82a848c568437f244389180fb6ce8a82b4 /README.rst
parentAdd reply packet parser tests (diff)
downloadlirc-25f3a68f39a9618549ea1fbe7c7b06dd7306af8b.zip
Rename send, start_repeat, and stop_repeat
This now aligns exactly with the calls to lircd.
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst8
1 files changed, 4 insertions, 4 deletions
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)