It seems discovered resource is not what it should be in sample client.
It happens because method finding resource is changed.
Change-Id: Ib820319658038f7969fbd503b374c9d1933adb09
Signed-off-by: coderhyme <jhyo.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/6265
Reviewed-by: Markus Jung <markus.jung85@gmail.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
private static final int MSG_ID_ATTRIBUTE_RECEIVED = 1;
private static final int MSG_ID_PRINT_LOG = 2;
+ private static final String RESOURCE_TYPE = "oic.r.temperature.sensor";
private static final String ATTR_KEY_TEMPERATURE = "Temperature";
private TextView mLogView;
if (mDiscoveryTask == null) {
try {
mDiscoveryTask = RcsDiscoveryManager.getInstance()
- .discoverResource(RcsAddress.multicast(),
+ .discoverResourceByType(RcsAddress.multicast(), RESOURCE_TYPE,
mOnResourceDiscoveredListener);
mDiscoveryBtn.setText(R.string.cancel_discovery);