{
OIC_LOG_V(ERROR, CALEADAPTER_TAG,
"CAGenerateVariableForFragmentation failed, result [%d]", result);
- g_errorHandler(bleData->remoteEndpoint, bleData->data, bleData->dataLen, result);
+ if (g_errorHandler)
+ {
+ g_errorHandler(bleData->remoteEndpoint, bleData->data, bleData->dataLen, result);
+ }
return;
}
{
OIC_LOG_V(ERROR, CALEADAPTER_TAG,
"CAGenerateHeader failed, result [%d]", result);
- g_errorHandler(bleData->remoteEndpoint, bleData->data, bleData->dataLen, result);
+ if (g_errorHandler)
+ {
+ g_errorHandler(bleData->remoteEndpoint, bleData->data, bleData->dataLen, result);
+ }
return;
}
{
OIC_LOG_V(ERROR, CALEADAPTER_TAG,
"CAGenerateHeaderPayloadLength failed, result [%d]", result);
- g_errorHandler(bleData->remoteEndpoint, bleData->data, bleData->dataLen, result);
+ if (g_errorHandler)
+ {
+ g_errorHandler(bleData->remoteEndpoint, bleData->data, bleData->dataLen, result);
+ }
return;
}
{
OIC_LOG_V(ERROR, CALEADAPTER_TAG,
"Making data segment failed, result [%d]", result);
- g_errorHandler(bleData->remoteEndpoint, bleData->data, bleData->dataLen, result);
+ if (g_errorHandler)
+ {
+ g_errorHandler(bleData->remoteEndpoint, bleData->data, bleData->dataLen, result);
+ }
return;
}
CALEADAPTER_TAG,
"Update characteristics failed, result [%d]",
result);
-
- g_errorHandler(bleData->remoteEndpoint,
- bleData->data,
- bleData->dataLen,
- result);
+ if (g_errorHandler)
+ {
+ g_errorHandler(bleData->remoteEndpoint,
+ bleData->data,
+ bleData->dataLen,
+ result);
+ }
return;
}
{
OIC_LOG_V(ERROR, CALEADAPTER_TAG,
"CAGenerateHeader failed, result [%d]", result);
- g_errorHandler(bleData->remoteEndpoint, bleData->data, bleData->dataLen, result);
+ if (g_errorHandler)
+ {
+ g_errorHandler(bleData->remoteEndpoint, bleData->data, bleData->dataLen, result);
+ }
return;
}
{
OIC_LOG_V(ERROR, CALEADAPTER_TAG,
"Making data segment failed, result [%d]", result);
- g_errorHandler(bleData->remoteEndpoint, bleData->data, bleData->dataLen, result);
+ if (g_errorHandler)
+ {
+ g_errorHandler(bleData->remoteEndpoint, bleData->data, bleData->dataLen, result);
+ }
return;
}
{
OIC_LOG_V(ERROR, CALEADAPTER_TAG,
"Update characteristics failed, result [%d]", result);
- g_errorHandler(bleData->remoteEndpoint, bleData->data, bleData->dataLen, result);
+ if (g_errorHandler)
+ {
+ g_errorHandler(bleData->remoteEndpoint, bleData->data, bleData->dataLen, result);
+ }
return;
}
OIC_LOG_V(DEBUG, CALEADAPTER_TAG, "Server Sent data length [%d]",
{
OIC_LOG_V(ERROR, CALEADAPTER_TAG,
"Making data segment failed, result [%d]", result);
- g_errorHandler(bleData->remoteEndpoint, bleData->data, bleData->dataLen, result);
+ if (g_errorHandler)
+ {
+ g_errorHandler(bleData->remoteEndpoint, bleData->data, bleData->dataLen, result);
+ }
return;
}
CALEADAPTER_TAG,
"Update characteristics failed, result [%d]",
result);
- g_errorHandler(bleData->remoteEndpoint,
- bleData->data,
- bleData->dataLen,
- result);
+ if (g_errorHandler)
+ {
+ g_errorHandler(bleData->remoteEndpoint,
+ bleData->data,
+ bleData->dataLen,
+ result);
+ }
return;
}
OIC_LOG_V(DEBUG,
CALEADAPTER_TAG,
"CALEClientSendNegotiationMessage has failed, result [%d]",
res);
-
- g_errorHandler(bleData->remoteEndpoint,
- bleData->data,
- bleData->dataLen,
- res);
+ if (g_errorHandler)
+ {
+ g_errorHandler(bleData->remoteEndpoint,
+ bleData->data,
+ bleData->dataLen,
+ res);
+ }
return;
}
}
{
OIC_LOG_V(ERROR, CALEADAPTER_TAG,
"CAGenerateVariableForFragmentation failed, result [%d]", result);
- g_errorHandler(bleData->remoteEndpoint, bleData->data, bleData->dataLen, result);
+ if (g_errorHandler)
+ {
+ g_errorHandler(bleData->remoteEndpoint, bleData->data, bleData->dataLen, result);
+ }
return;
}
{
OIC_LOG_V(ERROR, CALEADAPTER_TAG,
"CAGenerateHeader failed, result [%d]", result);
- g_errorHandler(bleData->remoteEndpoint, bleData->data, bleData->dataLen, result);
+ if (g_errorHandler)
+ {
+ g_errorHandler(bleData->remoteEndpoint, bleData->data, bleData->dataLen, result);
+ }
return;
}
{
OIC_LOG_V(ERROR, CALEADAPTER_TAG,
"CAGenerateHeaderPayloadLength failed, result [%d]", result);
- g_errorHandler(bleData->remoteEndpoint, bleData->data, bleData->dataLen, result);
+ if (g_errorHandler)
+ {
+ g_errorHandler(bleData->remoteEndpoint, bleData->data, bleData->dataLen, result);
+ }
return;
}
{
OIC_LOG_V(ERROR, CALEADAPTER_TAG,
"Making data segment failed, result [%d]", result);
- g_errorHandler(bleData->remoteEndpoint, bleData->data, bleData->dataLen, result);
+ if (g_errorHandler)
+ {
+ g_errorHandler(bleData->remoteEndpoint, bleData->data, bleData->dataLen, result);
+ }
return;
}
CALEADAPTER_TAG,
"Update characteristics failed, result [%d]",
result);
- g_errorHandler(bleData->remoteEndpoint,
- bleData->data,
- bleData->dataLen,
- result);
+ if (g_errorHandler)
+ {
+ g_errorHandler(bleData->remoteEndpoint,
+ bleData->data,
+ bleData->dataLen,
+ result);
+ }
return;
}
OIC_LOG_V(DEBUG,
{
OIC_LOG_V(ERROR, CALEADAPTER_TAG,
"CAGenerateHeader failed, result [%d]", result);
- g_errorHandler(bleData->remoteEndpoint, bleData->data, bleData->dataLen, result);
+ if (g_errorHandler)
+ {
+ g_errorHandler(bleData->remoteEndpoint, bleData->data, bleData->dataLen, result);
+ }
return;
}
{
OIC_LOG_V(ERROR, CALEADAPTER_TAG,
"Making data segment failed, result [%d]", result);
- g_errorHandler(bleData->remoteEndpoint, bleData->data, bleData->dataLen, result);
+ if (g_errorHandler)
+ {
+ g_errorHandler(bleData->remoteEndpoint, bleData->data, bleData->dataLen, result);
+ }
return;
}
CALEADAPTER_TAG,
"Update characteristics failed, result [%d]",
result);
- g_errorHandler(bleData->remoteEndpoint, bleData->data, bleData->dataLen, result);
+ if (g_errorHandler)
+ {
+ g_errorHandler(bleData->remoteEndpoint, bleData->data, bleData->dataLen, result);
+ }
return;
}
OIC_LOG_V(DEBUG,
{
OIC_LOG_V(ERROR, CALEADAPTER_TAG,
"Making data segment failed, result [%d]", result);
- g_errorHandler(bleData->remoteEndpoint, bleData->data, bleData->dataLen, result);
+ if (g_errorHandler)
+ {
+ g_errorHandler(bleData->remoteEndpoint, bleData->data, bleData->dataLen, result);
+ }
return;
}
{
OIC_LOG_V(ERROR, CALEADAPTER_TAG, "Update characteristics failed, result [%d]",
result);
- g_errorHandler(bleData->remoteEndpoint, bleData->data, bleData->dataLen, result);
+ if (g_errorHandler)
+ {
+ g_errorHandler(bleData->remoteEndpoint, bleData->data, bleData->dataLen, result);
+ }
return;
}
OIC_LOG_V(DEBUG,