ThrowOcException(OC_STACK_INVALID_PARAM, "onPlatformFoundListener cannot be null");
return;
}
- JniOnDeviceInfoListener *onDeviceInfoListener = AddOnDeviceInfoListener(env, jListener);
+ JniOnPlatformInfoListener *onPlatformInfoListener = AddOnPlatformInfoListener(env, jListener);
- FindDeviceCallback findDeviceCallback =
- [onDeviceInfoListener](const OCRepresentation& ocRepresentation)
+ FindPlatformCallback findPlatformCallback =
+ [onPlatformInfoListener](const OCRepresentation& ocRepresentation)
{
- onDeviceInfoListener->foundDeviceCallback(ocRepresentation);
+ onPlatformInfoListener->foundPlatformCallback(ocRepresentation);
};
try
host,
resourceUri,
static_cast<OCConnectivityType>(jConnectivityType),
- findDeviceCallback,
+ findPlatformCallback,
JniUtils::getQOS(env, static_cast<int>(jQoS)));
if (OC_STACK_OK != result)