Commit Graph

12 Commits

Author SHA1 Message Date
Claudio Takahasi
a8c00286f8 tools: Add emitting descriptor PropertiesChanged
This patch forces emitting PropertiesChanged signal when the descriptor
Value changes. Internally, BlueZ tracks the signal emitted to update
the GDBusProxy properties.
2014-03-31 16:14:16 +03:00
Claudio Takahasi
379a8c7651 tools: Add Get/Set descriptor
This patch adds get and set callbacks to allow managing "Value" property
of the user defined descriptor related to IAS Alert Level.
2014-03-31 16:14:16 +03:00
Claudio Takahasi
062d5fc4c1 tools: Add testing descriptor for IAS Alert Level
This patch adds a testing purpose only characteristic descriptor to
allow reading and writing descriptor's "Value" property.
2014-03-31 16:14:16 +03:00
Alvaro Silva
12947cc943 test: Add permissions for Alert Level of gatt-service
This patch adds properties to Alert Level characteristic of the
Immediate Alert Service. IAS specification defines Write Without
Response as mandatory.
2014-03-28 14:22:00 +02:00
Claudio Takahasi
958f256524 tools: Fix coding style checking boolean
This patch fixes tools/gatt-service.c coding style, using !foo instead
of foo == FALSE.
2014-03-24 16:28:42 +02:00
Claudio Takahasi
a3c32f0f61 tools: Emit property changed when Value changes
This patch extends gatt-service tool, emitting PropertiesChanged for
"Value" when a new value is set. This flow represents the handling of
ATT Write Command or Write Request which is translated to a GDBusProxy
set property. PropertiesChanged will be tracked by the characteristic
GDBusProxy in order to detect "Value" changes.
2014-03-24 15:40:20 +02:00
Alvaro Silva
4987c5bc20 tools: Add setting Value property of gatt-service
This patch extends the gatt-service.c example adding a generic callback
to allow set the characteristic Value. It doesn't check for
characteristic properties yet.
2014-03-24 15:39:58 +02:00
Alvaro Silva
bbee29a968 tools: Add reading Value property of gatt-service
This patch extends the gatt-service.c example adding the callback to
allow reading the Value property. At the moment, it is a generic
callback and it doesn't consider characteristic value property
restrictions.
2014-03-24 15:39:48 +02:00
Alvaro Silva
2c71dcff91 tools: Add Alert Level characteristic to gatt-service
This patch registers the Alert Level characteristic object related to
Immediate Alert Service. It adds the characteristic UUID property only.
2014-03-24 15:39:00 +02:00
Claudio Takahasi
d5f3308f9c tools: Fix coding style when testing pointer
This patch fixes tools/gatt-service.c coding style, using !ptr instead
of ptr == NULL.
2014-03-24 11:02:53 +02:00
Marcel Holtmann
328d84e1e6 tools: Add some extra debug prints to GATT service example 2014-03-09 12:13:22 -07:00
Marcel Holtmann
ea05fb38b1 build: Move gatt-service test utility into tools directory 2014-03-06 09:46:57 -08:00