diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2020-12-26 15:12:03 -0600 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2020-12-26 15:12:03 -0600 |
| commit | 25f3a68f39a9618549ea1fbe7c7b06dd7306af8b (patch) | |
| tree | 7327fa82a848c568437f244389180fb6ce8a82b4 /README.rst | |
| parent | Add reply packet parser tests (diff) | |
| download | lirc-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.rst | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) |