return CA_STATUS_FAILED;
}
- OIC_LOG_V(INFO, TAG, "EDR sendTo is successful: %ld bytes, to %s",
+ OIC_LOG_V(INFO, TAG, "EDR sendTo is successful: %u bytes, to %s",
dataLength, address);
}
else
{
for (uint32_t idx = 0; idx < length; idx++)
{
- CAEDRNativeReadData(env, idx, ctx->type);
+ CAEDRNativeReadData(env, idx);
}
}
}
return CA_STATUS_OK;
}
-CAResult_t CAEDRNativeReadData(JNIEnv *env, uint32_t id, CAAdapterServerType_t type)
+CAResult_t CAEDRNativeReadData(JNIEnv *env, uint32_t id)
{
if ((*env)->ExceptionCheck(env))
{
* This function will read the data from remote device.
* @param[in] env JNI interface pointer.
* @param[in] id index of remote address.
- * @param[in] type EDR server type.
* @return ::CA_STATUS_OK or Appropriate error code.
*/
-CAResult_t CAEDRNativeReadData(JNIEnv *env, uint32_t id, CAAdapterServerType_t type);
+CAResult_t CAEDRNativeReadData(JNIEnv *env, uint32_t id);
/**
* Start Listen Task.
0);
OIC_LOG(DEBUG, EDR_ADAPTER_TAG, "Sending data up !");
- g_networkPacketReceivedCallback(remoteEndpoint, message->data, message->dataLen);
+
+ const CASecureEndpoint_t sep = { .endpoint = *remoteEndpoint };
+
+ g_networkPacketReceivedCallback(&sep, message->data, message->dataLen);
CAFreeEndpoint(remoteEndpoint);
void CANFCConnectionStateCB(const char *nfcAddress, CANetworkStatus_t status)
{
OIC_LOG(DEBUG, TAG, "Currently Not Supported");
+
+ (void)nfcAddress;
+ (void)status;
}
void CANFCPacketReceivedCB(const CASecureEndpoint_t *sep, const void *data, uint32_t dataLength)
CANFCData *nfcData = (CANFCData *) data;
CAFreeNFCData(nfcData);
+ (void)size;
}
CAResult_t CAGetNFCInterfaceInformation(CAEndpoint_t **info, uint32_t *size)