Hi Sheldon, On Thu, Nov 18, 2010, Sheldon Demario wrote: > Sub-procedure used to read a Characteristic Value when the client > only knows the characteristic UUID and doesn't know the handle. > More than one handle and attribute value pair can be returned, > it is up to the user define the handles range based on the service > handles range. > > Usage example: > $gatttool --char-read --uuid=2a00 -i hcix -b xx:xx:xx:xx:xx:xx > --- > attrib/gatt.c | 13 ++++++++++++- > attrib/gatt.h | 4 ++++ > attrib/gatttool.c | 39 +++++++++++++++++++++++++++++++++++++++ > 3 files changed, 55 insertions(+), 1 deletions(-) Doesn't compile: attrib/gatt.c: In function âgatt_discover_charâ: attrib/gatt.c:79: error: unused variable âplenâ attrib/gatt.c:77: error: unused variable âpduâ make[1]: *** [attrib/gatt.o] Error 1 Always check your patches against ./bootstrap-configure Furthermore, there's at least one coding style issue: > +guint gatt_read_char_by_uuid(GAttrib *attrib, uint16_t start, uint16_t end, > + uuid_t *uuid, GAttribResultFunc func, > + gpointer user_data) The lines after the first one should all have the same indentation, i.e. the third one has one tab too much. Johan -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html