addUriPath method
Add a URI path
Implementation
void addUriPath(final String path) {
if (path == '.' || path == '..') {
throw ArgumentError.value(
path,
'Message::addUriPath',
'The value of a Uri-Path Option must not be "." or ".."',
);
}
if (path.length > 255) {
throw ArgumentError.value(
path.length,
'Message::addUriPath',
"Uri Path option's length must be between 0 and 255 inclusive",
);
}
addOption(CoapOption.createString(OptionType.uriPath, path));
}