Hi Neil,

Indeed, the functionality is broken for Android in 1.1.0 release. The following 
patch https://gerrit.iotivity.org/gerrit/#/c/5747/ made the types of 
OCDeviceInfo struct mandatory, but did not propagate this change into Java.

A fix will be provided soon.

Best regards,

Tim Kourt
Intel Open Source Technology Center


From: iotivity-dev-bounces at lists.iotivity.org 
[mailto:[email protected]] On Behalf Of Wong Hon Chan, 
Neil D
Sent: Tuesday, May 17, 2016 11:34 AM
To: iotivity-dev at lists.iotivity.org
Cc: Cheung, Jimmy <jimmy.cheung at intel.com>
Subject: [dev] [Dev] Crash in deviceDiscoveryClient build 1.1.0

Hi,

We recently build the release 1.1.0 for Iotivity and are using the 
deviceDiscoveryClient and deviceDiscoveryServer sample apps.
We are testing the apps on a Nexus 5 running Android 6.0 and a Moto g3 running 
Android 5.1.1.

Running the deviceDiscoveryServer we are able to make a call to 
OcPlatform.registerDeviceInfo(deviceInfo) without causing the server app to 
crash.
However when we run the deviceDiscoveryClient it will crash the server app when 
making a call to
OcPlatform.getDeviceInfo("",
                    OcPlatform.WELL_KNOWN_DEVICE_QUERY,
                    EnumSet.of(OcConnectivityType.CT_DEFAULT),
                    this);

The onDeviceFound() will not be reached in the client app.

Any idea on how to fix this issue either on the app side or on Iotivity side?

Thanks,
Neil.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160520/ecdaabbd/attachment.html>

Reply via email to