diff options
author | Grzegorz Kolodziejczyk <grzegorz.kolodziejczyk@codecoup.pl> | 2018-04-26 14:32:00 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2018-04-26 15:53:38 +0300 |
commit | 7f9dcb3c45a10a76f622663ffed16c7dbafaff26 (patch) | |
tree | b331d7187d22a520ffed1fd3ada30f63a0b26219 /client/main.c | |
parent | 5d50dc020bf649e3ac26b81e2f680547bc20b9d2 (diff) | |
download | bluez-7f9dcb3c45a10a76f622663ffed16c7dbafaff26.tar.gz |
client: Add support for optional gatt write offset parameter
This patch extends missing optional gatt write offset parameter.
Diffstat (limited to 'client/main.c')
-rw-r--r-- | client/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/main.c b/client/main.c index 57a85f1d5..dd85a1c85 100644 --- a/client/main.c +++ b/client/main.c @@ -1918,7 +1918,7 @@ static void cmd_write(int argc, char *argv[]) return bt_shell_noninteractive_quit(EXIT_FAILURE); } - gatt_write_attribute(default_attr, argv[1]); + gatt_write_attribute(default_attr, argc, argv); } static void cmd_acquire_write(int argc, char *argv[]) @@ -2416,7 +2416,7 @@ static const struct bt_shell_menu gatt_menu = { { "attribute-info", "[attribute/UUID]", cmd_attribute_info, "Select attribute", attribute_generator }, { "read", "[offset]", cmd_read, "Read attribute value" }, - { "write", "<data=xx xx ...>", cmd_write, + { "write", "<data=xx xx ...> [offset]", cmd_write, "Write attribute value" }, { "acquire-write", NULL, cmd_acquire_write, "Acquire Write file descriptor" }, |