Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[leshan-dev] Integer resource with no value

Hi,

What do you think is correct behaviour for an integer resource with no value?

At the moment my client returns it as an empty string, which generates an error in Leshan: "500 [Invalid value for integer resource: ] ([/7/0/2])" This example is happening because the interface is not connected, so there are no statistics yet (but there will be later). Is Leshan right to display an error, or should it accept it and display a blank?

I don't think returning "0" is always right (though this example would be OK). Also 4.04 Not Found implies that the resource doesn't exist at all.

Cheers,
Bill


Back to the top