Santiago Carot-Nemesio
a7990d8ff6
thermometer: Use system types instead of glib ones
2011-12-15 13:24:26 +02:00
Santiago Carot-Nemesio
3cda922eea
thermometer: Fix bad read operation when time stamp is not provided
...
Time stamp value is an optional field provided in the measure, so next
value in the array will start in a different index depending if the time
stamp was provided or not. This patch check this case and update the
index to a proper value in the byte array before reading the temperature
type value.
2011-12-15 13:24:23 +02:00
Santiago Carot-Nemesio
726dc13a33
thermometer: Fix possible NULL pointer deference
...
This patch checks the GATT server is connected before doing any GATT
transaction. If it isn't, we abort the operation to avoid the NULL
pointer deference problem.
2011-12-15 13:24:21 +02:00
Santiago Carot-Nemesio
3ff4427f39
thermometer: Process measurement interval indications
...
This patch emits PropertyChange signal whenever a new value is set in
the measurement interval characteristic.
2011-12-15 13:24:18 +02:00
Santiago Carot-Nemesio
c275bde366
thermometer: Configure C.C.C descriptor during thermometer configuration
...
This patch enables notification/indication in GATT server if there are
any watcher regitered for measurements when the thermometer is
configured.
2011-12-15 13:23:37 +02:00
Santiago Carot-Nemesio
563ef8324c
thermometer: Implement SetProperty D-Bus method
2011-12-15 13:23:29 +02:00
Santiago Carot-Nemesio
c569aca90c
thermometer: Fix bad epoch time stamp generation
...
The number of months is in the range 0 to 11, we have to decrease
month number by 1 before getting the epoch.
2011-12-08 14:36:55 +02:00
Santiago Carot-Nemesio
5735830b25
Notify intermediate measurements
2011-11-18 13:14:29 +02:00
Santiago Carot-Nemesio
a6c34b2c3a
Implement DisableIntermediateMeasurement D-Bus method
2011-11-18 13:14:27 +02:00
Santiago Carot-Nemesio
02308bf820
Implement EnableIntermediateMeasurement D-Bus method
2011-11-18 13:14:24 +02:00
Santiago Carot-Nemesio
e414184082
Parse final measurement indication
2011-11-18 13:14:19 +02:00
Santiago Carot-Nemesio
1b34ecad4f
Manage GATT attribute indications in handle callback
2011-11-18 13:14:12 +02:00
Santiago Carot-Nemesio
8bfd6b663e
Implement D-Bus get properties function
2011-11-02 11:55:43 +02:00
Santiago Carot-Nemesio
5c8be87889
Manage watcher's disconnections from the bus
2011-11-02 11:55:35 +02:00
Santiago Carot-Nemesio
29db85bf38
Disable final measurements indication when last watcher is removed
2011-11-02 11:55:26 +02:00
Santiago Carot-Nemesio
e09be5e270
Enable final measurement indications when first watcher is enabled
2011-11-02 11:55:15 +02:00
Santiago Carot-Nemesio
5fa4b3d10f
Implement D-Bus unregister watcher function
2011-11-02 11:55:05 +02:00
Santiago Carot-Nemesio
e4d4359c59
Implement D-Bus register watcher function
2011-11-02 11:54:56 +02:00
Santiago Carot-Nemesio
5ab1c52a14
Get valid range descriptor if it is supported
2011-11-02 11:54:46 +02:00
Santiago Carot-Nemesio
d7fecaa17f
Process characteristic descriptors in the thermometer service
2011-11-02 11:54:36 +02:00
Santiago Carot-Nemesio
b3cf3d6d1b
Remove unnecessary casting in thermometer plugin
2011-11-01 10:12:35 +02:00
Frédéric Danis
4a4b56556f
Fix implicit declaration of 'g_slist_free_full'
...
audio/avrcp.c: In function 'avrcp_unregister':
audio/avrcp.c:1253: error: implicit declaration of function 'g_slist_free_full'
thermometer/thermometer.c: In function 'destroy_char':
thermometer/thermometer.c:79: error: implicit declaration of function 'g_slist_free_full'
2011-10-18 13:23:47 +03:00
Johan Hedberg
d6ca701986
Simplify process_thermometer_char() logic
2011-10-17 11:25:25 +03:00
Santiago Carot-Nemesio
e3eb563d06
Fix thermometer Intermediate property changes
...
Set Intermediate property if intermediate temperature characteristic is
supported
2011-10-17 11:21:15 +03:00
Santiago Carot-Nemesio
4cd8ecb074
Read measurement interval characteristic
2011-10-17 11:08:39 +03:00
Santiago Carot-Nemesio
c9fc590787
Read temperature type characteristic
2011-10-17 11:08:37 +03:00
Santiago Carot-Nemesio
2219cc884c
Get all characteristics in thermometer service
2011-10-17 11:08:35 +03:00
Santiago Carot-Nemesio
62d4daf26a
Add handler function to manage GATT indications
2011-10-17 11:08:33 +03:00
Santiago Carot-Nemesio
2d2e3a412c
Add functions to manage attio callbacks
2011-10-17 11:08:30 +03:00
Santiago Carot-Nemesio
3e7ecc4309
Unregister Health Thermometer Interface
2011-10-17 11:08:28 +03:00
Santiago Carot-Nemesio
f324306643
Register Health Thermometer Interface
2011-10-17 11:08:24 +03:00
Santiago Carot-Nemesio
d9ef9b74a9
Get thermometer service range to load the driver.
2011-10-17 11:08:22 +03:00
Johan Hedberg
4c4c4e5917
Remove per-file author information
...
In the long run this information becomes a pain to maintain and it is
already covered by the AUTHORS file and the git commit history.
2011-07-29 12:52:58 +03:00
Santiago Carot-Nemesio
e8825b76fc
Add thermometer driver skeleton
2011-07-29 12:50:35 +03:00
Santiago Carot-Nemesio
3e24f80260
Add manager files for HTP
2011-07-29 12:50:32 +03:00
Santiago Carot-Nemesio
67c15df485
Initial support for Health Thermometer Profile (HTP)
2011-07-29 12:50:30 +03:00