smartheim / wakaamaNode

lwM2M library based on Wakaama for PlattformIO/cmake with easy object API
https://openhab-nodes.github.io/wakaamaNode/
MIT License
27 stars 18 forks source link

Changes for pull request #21

Closed taubel closed 6 years ago

taubel commented 6 years ago

Hello again, thank you for taking your time to review my pull requests. I have noticed that the library is lacking in float type implementation so these are my proposed changes. Problems arose when initiating READ requests from the server side and expecting a float type return. What happens is that a double type variable is returned which is of different size than float, so it gets decoded differently, yielding wrong results. These changes seem to have fixed the issue, although I haven't tested out a WRITE request.