aboutsummaryrefslogtreecommitdiff
path: root/attrib
AgeCommit message (Collapse)Author
2011-04-26Clean up ATT CID & PSM magic values & definititionsJohan Hedberg
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.
2011-04-14Remove btd_device_add_service functionClaudio Takahasi
btd_device_add_service is no longer necessary if the object paths for the primary services can be returned during the registration.
2011-04-14Register primary services exported over basic rateClaudio Takahasi
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.
2011-04-14Fix race condition on gatttoolSheldon Demario
When the connect_cb() takes too long to be called the event_loop goes to idle state and executes the callback too early
2011-04-09Add workaround to skip wrong OMTU for basic rateClaudio Takahasi
This patch is required until the MTU kernel patch is integrated. Without it the kernel returns zero for basic rate OMTU.
2011-04-09Fix Characteristic read by UUID on gatttoolSheldon Demario
The Characteristic read by UUID GATT procedure is not incremental, i.e. it returns the entire list in a single Read By Type request. Therefore it should not be called recursively.
2011-04-01Remove deprecated attrib pluginBruna Moreira
The attrib plugin is deprecated and it is not used anymore. Remove it and all related configuration. Note that GATT utility (gatttool) configuration item was moved to Makefile.tools and it is compiled when --enable-tools is used in configure.
2011-03-30Remove "authen" and "autho" short versions for ATT constantsClaudio Takahasi
2011-03-30Move GATT example server to a standalone pluginAnderson Lizardo
The GATT example server was in the same plugin as the GATT client. Moving it to a separate plugin will allow to easily disable it.
2011-03-30Add support for re-using the attrib channelVinicius Costa Gomes
In some cases, when the device is already connected there's no need to create another GAttrib instance. This will allow the Attrib client to use the connection already estabilished, this will be very useful when we support more LE profiles.
2011-03-30Remove _init and _exit methods from Attrib clientVinicius Costa Gomes
Now that Attrib client is being moved to the core, there's no need to have explicit _init and _exit methods. This also means that we need to pass the DBusConnection explicitly to the registration method.
2011-03-30Register Attrib interface when loading device from storageVinicius Costa Gomes
Now that the GATT client functionality is being moved to the core we need to register the interface when the device is created.
2011-03-30Move Attrib client to the coreVinicius Costa Gomes
2011-03-18Add Exchange MTU in interactive gatttoolBruna Moreira
2011-03-18Add Exchange MTU operation in GATT libraryBruna Moreira
2011-03-18Use GAttrib buffer for ATT protocol PDUsBruna Moreira
Prior to this commit, there were local buffers inside GATT functions. Now, a single buffer is used, to make sure the MTU limit is respected.
2011-03-18Add internal buffer to GAttrib structBruna Moreira
The new buffer is allocated in g_attrib_new() and it will be used to send/receive PDUs. The buffer size is the MTU read from L2CAP channel limited to ATT_MAX_MTU. Functions to handle the buffer size were also created.
2011-03-17Add discover characteristics by UUID to gatttoolSheldon Demario
According to the specification the characteristics discover and characteristics discover by UUID use the same opcode and the result should be filtered by callback.
2011-03-15Remove redundant return statements from interactive gatttoolJohan Hedberg
2011-03-15Use new UUID functions in GATTElvis Pfützenreuter
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.
2011-03-15Fix not returning an error when DiscoverCharacteristics() failsVinicius Costa Gomes
When the connection fails an error should be returned to inform the user. This adds a field to store the DBusMessage that caused the error, so we can send the correct reply.
2011-03-15Fix the behaviour of the DiscoverCharacteristics methodVinicius Costa Gomes
The previous behaviour could lead to some problems, as it returned as soon as possible. To avoid problems we return just after as the characteristics are discovered, and to save a few round trips we return the path of all characteristics that belong to this service. After this method return it will try to read the characteristics values.
2011-03-15Rename the Discover method to DiscoverCharacteristicsVinicius Costa Gomes
2011-03-11Add indication/notification support to interactive gatttoolSheldon Demario
2011-03-10gatttool: Add Write Without Response optionClaudio Takahasi
Sub-procedure used to write a Characteristic Value to a server when the client knows the Characteristic Value Handle and the client does not need acknowledgement.
2011-03-10Extend Characteristic Write to support Write Without ResponseClaudio Takahasi
If callback is not informed, Write Command will be used to execute a Write Without Response sub-procedure. Error is not returned by the server no matter the result of the operation.
2011-03-04Add option to pass adapter to interactive gatttoolSheldon Demario
2011-03-04Add missing const to interactive() parameter in gatttoolSheldon Demario
2011-03-04Replace all strdup() with g_strdup() in gatttoolSheldon Demario
2011-03-04Add offset option to characteristic read by handleSheldon Demario
Some tests require an arbitrary offset.
2011-02-24Remove unused MTU variable in GAttrib structBruna Moreira
The MTU variable in GAttrib struct was not being used for any operation so it should be removed.
2011-02-24Coding standard change replacing malloc by glib functionsClaudio Takahasi
Use glib memory allocation functions instead of malloc for attribute data list in ATT protocol utility functions.
2011-02-24Add sec-level option to interactive gattoolSheldon Demario
2011-02-24Add Write Request in interactive gatttoolBruna Moreira
2011-02-24Move attr_data_from_string() to utils.cBruna Moreira
The attr_data_from_string() function will be used in interactive and usual gatttool so this function was moved to common file utils.c.
2011-02-24Add characteristics read options in interactive gatttoolSheldon Demario
2011-02-24Add Characteristics Descriptor Discovery option in interactive gatttoolSheldon Demario
2011-02-24Create a helper function to deal with handles on interactive gatttoolSheldon Demario
2011-02-24gatttool: Remove extra reference to the connection IO ChannelVinicius Costa Gomes
As we want the connection to be closed when the last GAttrib reference is dropped, we don't need to keep this reference.
2011-02-24Add support for GATT client timeoutsVinicius Costa Gomes
This patch adds support to destroying the GATT connection when a GATT server doesn't respond for more than 30 seconds. A function to destroy the GAttrib is introduced and it is used in the timeout case and when the last GAttrib reference is dropped.
2011-02-24Fix gattrib.c coding styleVinicius Costa Gomes
Just remove an extra empty line.
2011-02-24Add read/write callbacks to attribute serverAnderson Lizardo
These callbacks will allow profiles to act before an attribute is read and after it is written, to e.g. update the attribute value to/from an external source. Note that by the time the callback is called, the necessary security checks (attribute permissions, authentication and encryption) were already performed by the core attribute server. The callback can optionally return an ATT status code, which will be sent to the client using an Error Response PDU.
2011-02-24Don't register GATT related SDP records if attrib server is disabledClaudio Takahasi
GATT related SDP records should not be added if "AttributeServer" option is false in the configuration file. Problem happens only when attribute plugin is enabled.
2011-02-23Fix typo on DBG() string formatAnderson Lizardo
2011-02-23Check malformed notification/indication PDUElvis Pfützenreuter
This patch implements discard of obviously malformed GATT notification/indication PDUs.
2011-02-23Add Characteristics Discovery option to interactive gatttoolSheldon Demario
2011-02-23Improve help messages in interactive gatttoolSheldon Demario
Includes the parameters info on help.
2011-02-20Add missing UUID16 field to Included Svc AttributeBrian Gix
2011-02-19Add SDP registration of Primary GATT servicesBrian Gix
Add capability to register SDP record for Primary Services.
2011-02-18Add UUID property to GATT service objectElvis Pfützenreuter