Ashwini,


I am NOT familiar with android-api.

But, with C++ API, you can perform a Get Unicast on /oic/sec/acl like this:

OCPlatform::findResource("", "coap://a.b.c.d:6298/oic/sec/acl",  OC_IPV4, 
&foundResource);



Let us know if it helps.



Sachin



From: [email protected] 
[mailto:iotivity-dev-bounces at lists.iotivity.org] On Behalf Of ak.ashwini1981
Sent: Tuesday, June 09, 2015 10:03 PM
To: iotivity-dev at lists.iotivity.org
Subject: [dev] Get ACL from secure ACL resource



Hi List,



I am working on an android app where in i want to get the ACL of the selected 
device.


I am using android-api for the purpose. ACL resource is not discoverable 
resource.

AFAIK to do GET on a resource from android app i would need to have an object 
of OCResource, generally which is returned as an argument in dicoveryCallback 
function. Is there a way so that i can do unicast GET request on /oic/sec/acl 
from android-api without the ACL rsource being discovered in discovery.

May be by creating OCResource from app and doing it?

Thanks.
Ashwini

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150611/6efc325c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 7768 bytes
Desc: not available
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150611/6efc325c/attachment.p7s>

Reply via email to