Commit Graph

12 Commits

Author SHA1 Message Date
Claudio Takahasi
387d69382e Implement read by group type in the attribute server
Returns an attribute data list containing found services. Each
element of the list contains the start, end group handle and the
UUID16 of the given service. UUID128 is not being addressed yet.
2010-08-09 18:06:46 -04:00
Vinicius Costa Gomes
d55fa3f45d Add stubs for dealing with Read Request/Response PDUs 2010-08-09 18:06:45 -04:00
Vinicius Costa Gomes
25d2720869 Add encoder for Read By Group Type Response PDU 2010-08-09 18:06:45 -04:00
Vinicius Costa Gomes
02641ec20b Add decoder for Attribute Read by Group Type request 2010-08-09 18:06:45 -04:00
Claudio Takahasi
2581dc90f0 Remove __ATT_H macro definition 2010-08-09 18:06:45 -04:00
Vinicius Costa Gomes
735bc5019a Fix ATT utility functions naming
If we want to support both client and server roles, we must be clear that we
are encoding/decoding requests or responses.
2010-08-09 18:06:44 -04:00
Vinicius Costa Gomes
dafe0b2820 Add support to deal with Read by Type PDUs
This adds att_read_by_type_{encode,decode}, so we can create Read by Type
Requests and parse Read by Type Responses.
2010-08-09 18:06:44 -04:00
Vinicius Costa Gomes
70a6091ccf Add a way to decode the Read by Group type response
att_read_by_grp_type_decode() returns a attribute data list structure.
2010-08-09 18:06:44 -04:00
Claudio Takahasi
813d9f5c4b Add utility function to convert ATT error code to string 2010-08-09 18:06:44 -04:00
Vinicius Costa Gomes
83915080d7 Add simple implementation of g_attrib_send()
Generic function to send ATT PDUs. Timeout and notification are not
being addressed yet.
2010-08-09 18:06:44 -04:00
Claudio Takahasi
281e98d397 Initial Discover primary service implementation
Add read by group type encode function and initial skeleton for discover
all primary services on attribute client plugin.
2010-08-09 18:06:44 -04:00
Claudio Takahasi
fcc6c7788e Initial GAttrib functions
GAttrib aims to provide high level functions to hide GATT/ATT internals.
GATT client and server shall use these functions to serialize ATT
requests/responses.
2010-08-09 18:06:44 -04:00