So I ran the provisioningClient app and it owned the server device, however I 
am getting an error when doing the pairwise provisioning:
?Provisioning Client: Pairwise Provisioning error: 
OcSecureResource_provisionPairwiseDevices INVALID_PARAM?

I think I am missing some information in the json file (maybe some missing 
credentials or missing ACL information) that I am using the create the .dat 
file.

From: ??? [mailto:[email protected]]
Sent: Thursday, June 9, 2016 5:37 PM
To: Wong Hon Chan, Neil D <neil.d.wong.hon.chan at intel.com>
Cc: iotivity-dev <iotivity-dev at lists.iotivity.org>
Subject: RE: [dev] IoTivity 1.1.0 Android sample app with SECURE resources?


Hello Mr. Neil,

Have you performed provisioning the resource and client using the 
ProvisioningClient app before you discover and send GET?



- Thanks & Regards,

Mushfiqul Islam Antu





--------- Original Message ---------

Sender : Wong Hon Chan, Neil D <neil.d.wong.hon.chan at 
intel.com<mailto:neil.d.wong.hon.chan at intel.com>>

Date : 2016-06-10 07:22 (GMT+9)

Title : [dev] IoTivity 1.1.0 Android sample app with SECURE resources?


Hello,

Has anyone been able to create secured resources and allow a client and server 
to communicate in Android?

I am currently modifying the simpleServer and simpleClient Android sample apps 
and I am using the aar file of version 1.1.0 of IoTivity compiled with 
SECURED=1.

Following the similar steps in the provisioningClient sample app, I copied the 
.dat file for both the client and server from the asset folder to the phone and 
then provided the path to the PlatformConfig() call see below; where filePath 
is the folder location with the .dat file was copied.

// configuration for the client
PlatformConfig platformConfig = new PlatformConfig(
                this,
                context,
                ServiceType.IN_PROC,
                ModeType.CLIENT,
                "0.0.0.0", // By setting to "0.0.0.0", it binds to all 
available interfaces
                0,         // Uses randomly available port
                QualityOfService.LOW,
                filePath + "oic_svr_db_client.dat" // filePath + 
"oic_svr_db_server.dat" //the server .dat file is used in the server app
        );

However when I start both apps, the client detect the device and the ?light? 
resource but there is no response when the GET call is made.

Any idea how to get the secured resource to work on Android?

Thanks,
Neil.

_______________________________________________

iotivity-dev mailing list

iotivity-dev at lists.iotivity.org<mailto:iotivity-dev at lists.iotivity.org>

https://lists.iotivity.org/mailman/listinfo/iotivity-dev

[cid:image001.png at 01D1C279.DFF60A10]

[http://v70ext.samsung.net/mail/ext/v1/external/status/update?userid=i.mushfiq&do=bWFpbElEPTIwMTYwNjEwMDAzNzEwZXBjbXMxcDM2MTQ2MTA5NTUzYzNiZmE0YWJlMTg1MmQ1MWFjZjY1YiZyZWNpcGllbnRBZGRyZXNzPW5laWwuZC53b25nLmhvbi5jaGFuQGludGVsLmNvbQ__]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160610/ea477919/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 33527 bytes
Desc: image001.png
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160610/ea477919/attachment.png>

Reply via email to