Closed JosefWN closed 2 years ago
I wasn't sure if this was ready, so I merged the others, this has now resulted in a conflict.
Rebased, added a couple more test cases and re-ran all examples except the DTLS ones and they looked OK.
I'm fine with merging this if you guys are.
addUriPath
appends a single path to the full path,uriPath
sets the path as a whole. SinceaddUriPath
is a bit less idiomatic to use when setting the full path I have removed that use from the examples (and by mistake in theCoapClient
as well, the root cause for the bug in #103).uri
(internal setter) would because of my re-write override theuriPath
with that of the URI (blank), removed this since it's the base URI that's actually set (host/port).locationPath
setter and getter both return the same thing (almost, sanitized input), rather than settinglocationPath
and getting the same value fromlocationPathsString
.uriPath
vsuriPathsString
).addUriPath
, but not when settinguriPath
). Added tests to cover edge cases.