Re: [PATCH] Health Thermometer Profile API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jul 6, 2011, at 10:02 AM, Claudio Takahasi wrote:

> Hi Santiago,
> 
> <snip>
> 
>> +               RegisterWatcher(object agent)
>> +
>> +                       Registers a watcher to monitor scanned measurements.
>> +                       This agent will be notified about final temperature
>> +                       measurements.
>> +
>> +                       Possible Errors: org.bluez.Error.InvalidArguments
>> +
>> +               UnregisterWatcher(object agent)
>> +
>> +                       Unregisters a watcher.
>> +
>> +                       Final and intermediate temperatures won't be notified to
>> +                       this agent any more.
>> +
>> +                       Possible Errors: org.bluez.Error.InvalidArguments
>> +                                       org.bluez.Error.NotFound
>> +
>> +               EnableIntermediateMeasurement(object agent)
> 
> It'd be good to try hide from the apps notifications and indications.
> My opinion is: watchers doesn't need to know if the characteristic
> value is a notification or indication.
> The thermometer implementation could enable automatically
> notifications if there is at least one watcher registered.

The API does that for final measurements. This only enables/disables
the intermediate ones.

> 
> Is it important to know if the characteristic value is intermediate or not?

Yes. Intermediate is a "rough" measurement that is sent for display purposes
only, to keep the user happy, and not necessary when there is nobody watching.
The final measurement is the "trusted" one.

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux