From 3d0e48b33446567a7e02772bb84bd55c87073937 Mon Sep 17 00:00:00 2001 From: Jefferson Delfes Date: Fri, 28 Sep 2012 16:34:44 -0400 Subject: 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. --- attrib/gatttool.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'attrib/gatttool.c') 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}, }; -- cgit v1.2.1