mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2025-01-30 22:55:15 +00:00
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:
parent
bb126ee44b
commit
5c730bbf2a
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user