Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type:Float support on Devkit #8

Open
vsobara opened this issue May 19, 2016 · 3 comments
Open

Type:Float support on Devkit #8

vsobara opened this issue May 19, 2016 · 3 comments
Assignees

Comments

@vsobara
Copy link

vsobara commented May 19, 2016

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

@jpradocueva
Copy link
Member

@mkovatsc could you please provide a comment? Do you recall if when the DEVKIT was developed 'float' type was supported? Thanks

@mkovatsc
Copy link
Contributor

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?

@vsobara
Copy link
Author

vsobara commented May 21, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants