aboutsummaryrefslogtreecommitdiffstats
path: root/thermometer
Commit message (Collapse)AuthorAgeFilesLines
* Do not set signature and reply in GDBus tablesLucas De Marchi2012-05-171-7/+7
| | | | | Use GDBUS_* macros, so signature and reply fields are not set in each method/signal.
* Convert GDBus methods to use macro helpersLucas De Marchi2012-05-171-8/+20
| | | | | With these macro helpers we can separate in/out arguments and use their own vector.
* Constify GDBus signal tablesLucas De Marchi2012-05-171-1/+1
| | | | | | | Constify signal tables with the following command: find . -name '*.[ch]' -exec \ sed -i 's/\(GDBusSignalTable .* =\)/const \1/g' {} \;
* Constify GDBus method tablesLucas De Marchi2012-05-171-1/+1
| | | | | | | Constify method tables with the following command: find . -name '*.[ch]' -exec \ sed -i 's/\(GDBusMethodTable .* =\)/const \1/g' {} \;
* build: Remove glib-compat.h supportMarcel Holtmann2012-04-161-1/+0
|
* thermometer: Fix D-Bus service disconnect watch removalAnderson Lizardo2012-04-041-6/+10
| | | | | | destroy_watcher() will be automatically called when removing the D-Bus watch (it was set as the destroy callback when adding the watch), therefore it is only necessary to remove the watch.
* GATT: Replace start/end with att_rangeChen Ganir2012-03-261-2/+2
| | | | | Use att_range struct instead of individual start/end handles in gatt_primary structure
* GATT: Rename service and char structsChen Ganir2012-03-263-7/+9
| | | | | | 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.
* GATT: Profile support for EnableGattChen Ganir2012-03-261-0/+11
| | | | Add support for the EnableGatt for all GATT profiles.
* thermometer: Fix re-enabling notification/indication on reconnectionAnderson Lizardo2012-02-161-14/+21
| | | | | | If a result callback is not specified for gatt_write_char() it is assumed that Write Command will be used. This is not valid for Characteristic Descriptors, which only support Write Request.
* thermometer: Fix handling of missing Temperature TypeAnderson Lizardo2012-02-161-8/+3
| | | | | | | | | | | | According to HTS 1.0 (Table 3.1, and Sections 3.1.1.4 and 3.2), the Temperature Type Characteristic is optional. The only restriction is that it shall not be present if the Temperature Type is non-static, for which case the "Temperature Type" field shall be present on the Temperature Measurement Characteristic value. Given there is no default value specified when the Temperature Type is static and unknown, the "Type" entry for MeasurementReceived() on the Thermometer API was made optional.
* thermometer: Fix device driver probeBruna Moreira2012-02-161-4/+15
| | | | | | | | | | | | | The probe() function for GATT profiles should be transport agnostic. There is a btd_device_get_primaries() method which can be used to return a list of discovered GATT Primary Services, and it works for BR/EDR and LE. It is already used for Proximity, for instance. device_services_from_record() is BR/EDR specific and should not be used by GATT profile code. It also fixes a memory leak, given device_services_from_record() returns a heap allocated GSList.
* thermometer: Use system types instead of glib onesSantiago Carot-Nemesio2011-12-151-39/+39
|
* thermometer: Fix bad read operation when time stamp is not providedSantiago Carot-Nemesio2011-12-151-2/+8
| | | | | | | | 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.
* thermometer: Fix possible NULL pointer deferenceSantiago Carot-Nemesio2011-12-151-0/+15
| | | | | | 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.
* thermometer: Process measurement interval indicationsSantiago Carot-Nemesio2011-12-151-1/+10
| | | | | This patch emits PropertyChange signal whenever a new value is set in the measurement interval characteristic.
* thermometer: Configure C.C.C descriptor during thermometer configurationSantiago Carot-Nemesio2011-12-151-8/+17
| | | | | | This patch enables notification/indication in GATT server if there are any watcher regitered for measurements when the thermometer is configured.
* thermometer: Implement SetProperty D-Bus methodSantiago Carot-Nemesio2011-12-151-19/+99
|
* thermometer: Fix bad epoch time stamp generationSantiago Carot-Nemesio2011-12-081-1/+1
| | | | | The number of months is in the range 0 to 11, we have to decrease month number by 1 before getting the epoch.
* Notify intermediate measurementsSantiago Carot-Nemesio2011-11-181-5/+42
|
* Implement DisableIntermediateMeasurement D-Bus methodSantiago Carot-Nemesio2011-11-181-3/+60
|
* Implement EnableIntermediateMeasurement D-Bus methodSantiago Carot-Nemesio2011-11-181-12/+62
|
* Parse final measurement indicationSantiago Carot-Nemesio2011-11-181-1/+162
|
* Manage GATT attribute indications in handle callbackSantiago Carot-Nemesio2011-11-181-1/+50
|
* Implement D-Bus get properties functionSantiago Carot-Nemesio2011-11-021-3/+29
|
* Manage watcher's disconnections from the busSantiago Carot-Nemesio2011-11-021-1/+10
|
* Disable final measurements indication when last watcher is removedSantiago Carot-Nemesio2011-11-021-1/+24
|
* Enable final measurement indications when first watcher is enabledSantiago Carot-Nemesio2011-11-021-1/+75
|
* Implement D-Bus unregister watcher functionSantiago Carot-Nemesio2011-11-021-3/+27
|
* Implement D-Bus register watcher functionSantiago Carot-Nemesio2011-11-021-3/+93
|
* Get valid range descriptor if it is supportedSantiago Carot-Nemesio2011-11-021-1/+38
|
* Process characteristic descriptors in the thermometer serviceSantiago Carot-Nemesio2011-11-021-1/+76
|
* Remove unnecessary casting in thermometer pluginSantiago Carot-Nemesio2011-11-011-4/+2
|
* Fix implicit declaration of 'g_slist_free_full'Frédéric Danis2011-10-181-0/+5
| | | | | | | | 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'
* Simplify process_thermometer_char() logicJohan Hedberg2011-10-171-8/+4
|
* Fix thermometer Intermediate property changesSantiago Carot-Nemesio2011-10-171-1/+2
| | | | | Set Intermediate property if intermediate temperature characteristic is supported
* Read measurement interval characteristicSantiago Carot-Nemesio2011-10-171-1/+69
|
* Read temperature type characteristicSantiago Carot-Nemesio2011-10-171-1/+30
|
* Get all characteristics in thermometer serviceSantiago Carot-Nemesio2011-10-171-0/+110
|
* Add handler function to manage GATT indicationsSantiago Carot-Nemesio2011-10-171-0/+17
|
* Add functions to manage attio callbacksSantiago Carot-Nemesio2011-10-171-0/+28
|
* Unregister Health Thermometer InterfaceSantiago Carot-Nemesio2011-10-171-1/+22
|
* Register Health Thermometer InterfaceSantiago Carot-Nemesio2011-10-171-1/+109
|
* Get thermometer service range to load the driver.Santiago Carot-Nemesio2011-10-173-3/+19
|
* Remove per-file author informationJohan Hedberg2011-07-295-15/+0
| | | | | 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.
* Add thermometer driver skeletonSantiago Carot-Nemesio2011-07-293-2/+104
|
* Add manager files for HTPSantiago Carot-Nemesio2011-07-293-2/+84
|
* Initial support for Health Thermometer Profile (HTP)Santiago Carot-Nemesio2011-07-291-0/+45