Hi Anderson, 2012/2/14 Anderson Lizardo <anderson.lizardo@xxxxxxxxxxxxx>: > If a result callback is not specified for gatt_write_char() it is > assumed that Write Command will be used. This is not valid for > Characteristic Descriptors, which only support Write Request. I'm not against this patch but from my point of view, I think this is a little obscure behaviour wich would deserve an advice coment in gatt.h due it isn't clear for anybody developping over GATT to guess it. On the other hand, _I remember another functions in gatt.h wich have similar double behaviour depending on the parameters provided in there, suach as gatt_discovery_primary, in wich a discover ALL primary service is done if the uuid is equal to NULL or disvovery service by UUID is done if uuid is provided, I think gatt_discover_char works in the same way. Maybe that having a good comments here could help to avoid this kind of errors in the future. Regards. Santiago -- 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