diff options
author | Jefferson Delfes <jefferson.delfes@openbossa.org> | 2012-09-28 16:34:44 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-10-01 12:54:51 +0300 |
commit | 3d0e48b33446567a7e02772bb84bd55c87073937 (patch) | |
tree | 0c744b7f508b5795c6208ff82b7e6296de78d45f /attrib/gatttool.c | |
parent | 5e1174fb01bdb196efceb0f8bd801f262aeed4cd (diff) | |
download | bluez-3d0e48b33446567a7e02772bb84bd55c87073937.tar.gz |
gatt: Remove offset parameter from gatt_read_char
The Core spec allows to implement Read Long Characteristic Value as a
Read Request, followed by zero or more Read Blob Requests, therefore the
offset parameter is unnecessary and is always 0 for normal use.
Diffstat (limited to 'attrib/gatttool.c')
-rw-r--r-- | attrib/gatttool.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/attrib/gatttool.c b/attrib/gatttool.c index 416bb7118..3b0ebbc5b 100644 --- a/attrib/gatttool.c +++ b/attrib/gatttool.c @@ -53,7 +53,6 @@ static int opt_end = 0xffff; static int opt_handle = -1; static int opt_mtu = 0; static int opt_psm = 0; -static int opt_offset = 0; static gboolean opt_primary = FALSE; static gboolean opt_characteristics = FALSE; static gboolean opt_char_read = FALSE; @@ -318,7 +317,7 @@ static gboolean characteristics_read(gpointer user_data) return FALSE; } - gatt_read_char(attrib, opt_handle, opt_offset, char_read_cb, attrib); + gatt_read_char(attrib, opt_handle, char_read_cb, attrib); return FALSE; } @@ -498,8 +497,6 @@ static GOptionEntry char_rw_options[] = { { "value", 'n' , 0, G_OPTION_ARG_STRING, &opt_value, "Write characteristic value (required for write operation)", "0x0001" }, - { "offset", 'o', 0, G_OPTION_ARG_INT, &opt_offset, - "Offset to long read characteristic by handle", "N"}, {NULL}, }; |