Hello Tomasz.

The unit and valid ranges are published in the control form. See ยง3.3.1 in 
XEP-0325 for examples. Reasons for not using units in the actual set operation 
is because unit conversion is assumed too complex for the device, and that set 
operations follow limits defined for the parameter by the control form.

Best regards,
Peter Waher

-----Original Message-----
From: Tomasz Sterna [mailto:[email protected]] 
Sent: den 15 januari 2014 07:55
To: [email protected]
Subject: Re: [Standards] XEP-323 vs XEP-325

Dnia 2014-01-14, wto o godzinie 11:30 +0100, Joakim Eriksson pisze:
> <double name='DesiredRoomTemperature' value='22.0'/> ...
> I can understand omitting unit and momentary [...]

I can't understand omitting the unit.
You need to know up front what unit does the control expect.

There's a room for misinterpretation and mistakes like ie.
frying/freezing your plants.

When you specify the unit, at least you give a chance to err-out on unhandled 
unit if the control is unable to convert.


--
Tomasz Sterna @ http://abadcafe.pl/ @ http://www.xiaoka.com/


Reply via email to