Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[leshan-dev] Data type discrepancy: ResourceModel.Type vs Value.DataType

Hi all,

I’ve noticed a difference between data type support between org.eclipse.leshan.core.model.ResourceModel and org.eclipse.leshan.core.node.Value:


Type enum contains: STRING, INTEGER, FLOAT, BOOLEAN, OPAQUE, TIME


DataType enum contains: STRING, INTEGER, LONG, FLOAT, DOUBLE, BOOLEAN, OPAQUE, TIME

Is there a reason for this discrepancy? To me it makes the most sense for both objects to support the same types. If they do, maybe there should be one dedicated type enum to prevent confusion.

Thanks,

Abel de Beer

Cooking Fox 

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail


Back to the top