Hi Davi,

You are right, this behavior isn?t handled correctly by the C++ SDK and always 
results in ?Generic Error? error code that is propagated back to Android Java 
as an exception.

Could you please fill a Jira ticket on this one against the C++ SDK.

Thanks,
Tim

From: iotivity-dev-bounces at lists.iotivity.org 
[mailto:iotivity-dev-boun...@lists.iotivity.org] On Behalf Of Davi Di?rio Mendes
Sent: Wednesday, April 8, 2015 7:38 AM
To: iotivity-dev at lists.iotivity.org
Subject: [dev] Problems with documentation

Hi all
I am testing the android api and found an error on documentation.

"OCStackResult OC::OCPlatform::findResource ( const std::string &  host, const 
std::string &  resourceURI, FindCallback  resourceHandler  )

[...]

resourceURI name of the resource. If null or empty, performs search for all 
resource names.

[...]"
I don't know how it's working on C++, but in android api, if resourceURI is 
null, empty or not in format 
"coap://<multicast-address>/oc/core?rt=<resource-typename>", then an exception 
is thrown.

BR.

--
Davi Di?rio Mendes
Eng. de Computa??o - Turma de 2011
Universidade de S?o Paulo - EESC/ICMC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150408/378edd1c/attachment.html>

Reply via email to