summaryrefslogtreecommitdiff
path: root/attrib/gatt.h
Commit message (Collapse)AuthorAgeFilesLines
* attrib: Add SPDX License IdentifierTedd Ho-Jeong An2020-09-211-14/+1
| | | | | | | | | | | | | | | | | | | | | | | | This patch adds SPDX License Identifier and removes the license text. ------------------------------------- License COUNT ------------------------------------- GPL-2.0-or-later : 13 License: GPL-2.0-or-later attrib/att-database.h attrib/gattrib.h attrib/gatttool.h attrib/gatt-service.c attrib/interactive.c attrib/utils.c attrib/gatt.c attrib/gattrib.c attrib/gatt-service.h attrib/att.c attrib/gatt.h attrib/att.h attrib/gatttool.c
* attrib: Use local libbluetooth includesMarcel Holtmann2015-02-281-2/+0
|
* android/gatt: Fix signed write command encodingLukasz Rymanowski2014-05-301-1/+3
| | | | | | | As per spec (BT spec 4.1 Vol[3], Part F, chapter 3.4.5.4) we need to take opcode, handle and parameters to generate signature. In order to support it signing is moved to att.c, place where pdu is encoded
* attrib: Add wrapper to send signed write commandLukasz Rymanowski2014-05-261-0/+5
|
* gatt: Remove gatt_discover_char_descAndrzej Kaczmarek2014-05-051-3/+0
| | | | | This function is no longer used since all code is changed to use gatt_discover_desc instead.
* attrib: Add simpler call for descriptors discoveryAndrzej Kaczmarek2014-05-051-0/+10
| | | | | | | | | | | | | This patch adds gatt_discover_desc() function which performs descriptor discovery in a manner similar to gatt_discover_char(), i.e. it does complete discovery procedure and returns list of descriptors found when finished. For 16-bit UUIDs in addition to string UUID, short UUID is provided. It's also possible to specify single descriptor UUID to look for and discovery procedure is interrupted as soon as UUID is found. This way no more than one descriptor is returned which is useful when searching for common descriptors like CCC.
* attrib: Expose write executeLukasz Rymanowski2014-04-231-0/+3
| | | | This is needed to cover Android API
* attrib: Add API for reliable writeLukasz Rymanowski2014-04-231-0/+5
| | | | | Android expose to application api for reliable write. Therefore we need to add this support to gattrib
* attrib: Use const source data pointer for writeJakub Tyszkowski2014-03-281-3/+3
| | | | Source buffer for write operations should be immutable.
* gatt: Move Characteristic properties to attrib/gatt.hClaudio Takahasi2014-03-251-0/+18
| | | | | | Properties are defined by GATT specification. This patch moves and renames the defines related to Characteristic properties bits from attrib/att.h to attrib/gatt.h
* lib: Move GATT UUID to uuid.hClaudio Takahasi2014-02-241-25/+0
| | | | | | This patch moves GATT UUIDs definitions to a common header. uuid.h contains helper functions to manipulate Bluetooth UUIDs and some common BR/EDR services UUIDs.
* attrib: Modify gatt_cb_t signatureAnderson Lizardo2014-01-111-1/+1
| | | | | | Use standard C types instead of GLib ones (which are unnecessary here) and move the "status" parameter to the first position, so it is consistent with other callbacks.
* attrib: Rename gatt_find_info() to gatt_discover_char_desc()Anderson Lizardo2013-07-241-1/+1
| | | | | | The old name referred to the underlying ATT PDU (Find Information Request and Find Information Response) and not to the actual GATT procedure (Discover All Characteristic Descriptors).
* gatt: Add support for find included servicesVinicius Costa Gomes2012-10-091-0/+9
| | | | | | | | Some services like HID over LE can reference another service using included services. See Vol 3, Part G, section 2.6.3 of Core specification for more details.
* gatt: Remove offset parameter from gatt_read_charJefferson Delfes2012-10-011-2/+2
| | | | | | 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.
* gatt: Fix whitespace in UUID definitionsAndrzej Kaczmarek2012-09-031-2/+2
|
* gatt: Primary service interval may not changeClaudio Takahasi2012-08-201-0/+1
| | | | | This patch address the "Service Changed" scenario on which the start and end Primary Service attribute handle interval doesn't change.
* attrib: Use proper types for size variablesJohan Hedberg2012-08-151-1/+2
| | | | | | | | | size_t/ssize_t/off_t/etc are more appropriate for variables denoting some kind of size than simply using int. This patch includes a couple of other related changes to avoid gcc signedness errors resulting from it treating (for whatever reason) const variables and integer literals as signed.
* gatt: Add a new descriptor UUIDJoão Paulo Rechi Vita2012-08-141-0/+1
| | | | Add the UUID of the External Report Reference descriptor.
* gatt: add Report Reference descriptor UUIDClaudio Takahasi2012-07-091-0/+1
|
* GATT: Move GATT assigned numbers to GATT headerClaudio Takahasi2012-05-301-0/+28
|
* GATT: Replace start/end with att_rangeChen Ganir2012-03-261-2/+1
| | | | | Use att_range struct instead of individual start/end handles in gatt_primary structure
* GATT: Rename service and char structsChen Ganir2012-03-261-0/+13
| | | | | | Rename the att_primary to gatt_primary and att_char to gatt_char. Characteristic and Service do not exist in the ATT spec, only in GATT.
* Clean up ATT CID & PSM magic values & definititionsJohan Hedberg2011-04-261-2/+0
| | | | | Use proper defines for the ATT CID and PSM. The values are really ATT and not GATT specific so move them from gatt.h to att.h.
* Register primary services exported over basic rateClaudio Takahasi2011-04-141-0/+5
| | | | | | This patch registers the object paths for primary services exported through SDP. PSM, start and end handle information are available in the Protocol Descriptor List.
* Add Exchange MTU operation in GATT libraryBruna Moreira2011-03-181-0/+3
|
* Add discover characteristics by UUID to gatttoolSheldon Demario2011-03-171-1/+2
| | | | | | According to the specification the characteristics discover and characteristics discover by UUID use the same opcode and the result should be filtered by callback.
* Use new UUID functions in GATTElvis Pfützenreuter2011-03-151-2/+2
| | | | | | This patch puts the new UUID functions into use for GATT-related code, and adds some convenience functions to ATT API (att.h). Example GATT server is also changed.
* Add offset option to characteristic read by handleSheldon Demario2011-03-041-2/+2
| | | | Some tests require an arbitrary offset.
* Move common code from Discover all Characteristics to GATT libraryBruna Moreira2011-01-191-1/+1
| | | | | | | | The attribute client (attrib/client.c) and gatttool share similar code to parse the PDU coming from server. This commit moves this common code to attrib/gatt.c, and simplifies the callbacks implemented by the clients. The client callbacks are now called just once and get a GSList of characteristics, instead of the raw PDU.
* Rename gatt_primary_t to more generic nameBruna Moreira2011-01-191-2/+2
| | | | | The gatt_primary_t typedef was renamed to gatt_cb_t because it will be used for primary and characteristic callbacks.
* Move interactive code of Discover Primary to gatt.cClaudio Takahasi2011-01-081-2/+4
| | | | | Initial patch to move the shared code related to Discover All Primary Services and Discover Primary Services by UUID to gatt.c.
* Implement Characteristic Value Read using UUID in the gatttoolSheldon Demario2010-11-191-0/+4
| | | | | | | | | | | 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
* Add an extra parameter in the discovery primary to specify the UUIDClaudio Takahasi2010-11-181-2/+2
| | | | | | Extends discover primary function to perform discover by UUID. UUID parameter defines which procedure will be executed: Discover All Primary Services or Discover Primary Service by Service UUID.
* Enable GATT over LE link on the attribute clientClaudio Takahasi2010-11-051-0/+2
|
* Add support for Attribute Write RequestAnderson Lizardo2010-10-091-0/+3
| | | | | | | Implement encoders/decoders for Write Request/Response and the handling on attribute server. The attribute client still uses the Write Command because currently SetProperty() has no means to wait for the server response.
* Implement Write command in GATT APIBruna Moreira2010-10-041-0/+3
|
* Update copyright information of GATT library/toolsVinicius Costa Gomes2010-08-091-1/+2
|
* Add helper functions to send Find Information requestsVinicius Costa Gomes2010-08-091-0/+3
| | | | | This function allows one to send Find Information requests without having to build the PDU by hand each time.
* Implement characteristic value read on attribute serverAnderson Lizardo2010-08-091-0/+3
|
* Move gatt_discover_char to gatt.cClaudio Takahasi2010-08-091-0/+3
|
* Move gatt_discover_primary to gatt.cClaudio Takahasi2010-08-091-0/+25