update components/nstackx/nstackx_ctrl/core/coap_discover/coap_discover.c.

dfinder日志优化,删除不必需要的日志,在配置广播间隔及次数的接口增加debug级别日志打印

Signed-off-by: yexiaokang <yexiaokang3@huawei.com>
This commit is contained in:
yexiaokang 2024-11-05 02:45:39 +00:00 committed by Gitee
parent bb126ee44b
commit 5c730bbf2a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -704,7 +704,6 @@ static void CoapServiceDiscoverTimerHandle(void *argument)
DFINDER_LOGE(TAG, "failed when posting service discover request");
goto L_ERR_DISCOVER;
}
DFINDER_LOGI(TAG, "the %u time for device discovery.", g_discoverCount + 1);
/* Restart timer */
discoverInterval = GetDiscoverInterval(g_discoverCount);
@ -1268,6 +1267,8 @@ void SetCoapUserDiscoverInfo(uint32_t advCount, uint32_t advDuration)
if (advCount != 0) {
g_coapUserDiscoverInterval = advDuration / advCount;
}
DFINDER_LOGD(TAG, "SetCoapUserDiscoverInfo advCount %u, interval %u",
g_coapUserMaxDiscoverCount, g_coapUserDiscoverInterval);
}
int32_t SetCoapDiscConfig(const DFinderDiscConfig *discConfig)