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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160609/c3d4e448/attachment.html>

Reply via email to