ThingSet / thingset-device-library

ThingSet library for resource-constrained devices written in C/C++
https://thingset.io/thingset-device-library/
Apache License 2.0
13 stars 6 forks source link

Fix get_endpoint to allow / in parameters #3

Closed martinjaeger closed 3 years ago

martinjaeger commented 3 years ago

The previous function returned NULL if one of the parameters in the data section contained a slash (e.g. if it was a string containing a path).

This PR fixes the function and adds unit tests to cover this case.

azeemshatp commented 3 years ago

I have tested with the path string containing / , which seems to work.