OMA-LWM2M-DevKit
OMA-LWM2M-DevKit copied to clipboard
Type:Float support on Devkit
Hi,
I am new DEVKIT, Can any one please let me know whether the DEVKIT supports type: float, if just create a new object resource with "type": "float", or do I need to change some other to make it work.
"11": { "id": 11, "name": "Client Hold Off Time", "operations": "-", "instancetype": "single", "mandatory": true, "type": "float", "range": "", "units": "s",
Regards, Veerendra
@mkovatsc could you please provide a comment? Do you recall if when the DEVKIT was developed 'float' type was supported? Thanks
For text/plain and JSON floats are irrelevant (they are just text representing a floating point number.
For TLV I remember adding a binary float serialized and parser.
The code should be there, but so far there was no Object with a float to test it, if I remember correctly. Have you tested it? Any concrete issues?
Yes, I was trying to test scenario where by creating one new Object with type:float , but was not able to test as the DEVKIT was returning the value in string and in the end coap server was not able to parse the incoming value from DEVKIT as it was expecting float value. It would be great to hear from you if there is any other option to create an Object with float type.
Regards, Veerendra