You could set it to OcConnectivityType.IPv4, it works for me.

Regards,
Tonny

On Tue, Jun 16, 2015 at 4:58 AM, Xin Li <xin.li at mediatek.com> wrote:

>  Hello,
>
>
>
> I have met some problems with android-api in Iotivity 0.9.1.
>
>
>
>     1, in the BuildInstructionsForAndroidAPI.txt file, it says there are 9
> .so files inside the <iotivity>/android/android-api/base/libs/<TARGET_ARCH>
> directory, but I only found 7 .so files.
>
>
>
>     2, in the simpleclient android application example, in the
> SimpleClient.java file, in the initOICStack() function, there is one line
> ?OcPlatform.findResource(??,OcPlatform.WELL_KNOWN_QUERY + ??rt=? +
> ?core.light?, OcConnectivityType.WIFI, this);? but ?WIFI? is not defined in
> OcConnectivityType.
>
>
>
>     3, After changing the code to
> ?OcPlatform.findResource(??,OcPlatform.WELL_KNOWN_QUERY + ??rt=? +
> ?core.light?, OcConnectivityType.ALL, this);?, the simpleclient android
> application can still not find resource when the simpleserver android
> application is already run.
>
>
>
> Can someone please tell me how to make the android application
> simpleclient find simpleserver?
>
>
>
> FYI: I have already added the .aar file in the application as libs.
>
>
>
> Thank you very much.
>
>
>
>
>
> Xin Li
>
> ************* Email Confidentiality Notice ********************
> The information contained in this e-mail message (including any
> attachments) may be confidential, proprietary, privileged, or otherwise
> exempt from disclosure under applicable laws. It is intended to be
> conveyed only to the designated recipient(s). Any use, dissemination,
> distribution, printing, retaining or copying of this e-mail (including its
> attachments) by unintended recipient(s) is strictly prohibited and may
> be unlawful. If you are not an intended recipient of this e-mail, or believe
> that you have received this e-mail in error, please notify the sender
> immediately (by replying to this e-mail), delete any and all copies of
> this e-mail (including any attachments) from your system, and do not
> disclose the content of this e-mail to any other person. Thank you!
>
>
> _______________________________________________
> iotivity-dev mailing list
> iotivity-dev at lists.iotivity.org
> https://lists.iotivity.org/mailman/listinfo/iotivity-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150616/026f1f58/attachment.html>

Reply via email to