Skip to content

Commit 1776aab

Browse files
committed
Remove serial CLI implementation and related files; update CMakeLists.txt and .gitignore accordingly. Introduce new files for improved configuration management and enhance logging in the ACP client.
1 parent f9761f1 commit 1776aab

8 files changed

Lines changed: 1821 additions & 836 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
dist
33
.build
44
.cache
5+
.cursor
6+
.claude
57
compile_commands.json
68
tuya_app_config_secrets.h
79

IM/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ set(IM_PATH ${CMAKE_CURRENT_LIST_DIR})
88

99
set(IM_SRCS
1010
${IM_PATH}/im_utils.c
11-
${IM_PATH}/cli/serial_cli.c
1211
${IM_PATH}/bus/message_bus.c
1312
${IM_PATH}/channels/telegram_bot.c
1413
${IM_PATH}/channels/discord_bot.c

IM/cli/serial_cli.c

Lines changed: 0 additions & 310 deletions
This file was deleted.

IM/cli/serial_cli.h

Lines changed: 0 additions & 27 deletions
This file was deleted.

gateway/acp_client.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,12 +1340,12 @@ static OPERATE_RET __connect_and_handshake(void)
13401340

13411341
OPERATE_RET rt = tal_net_connect(fd, ip_addr, (uint16_t)s_gw_port);
13421342
if (rt != OPRT_OK) {
1343-
PR_ERR("acp tcp connect failed rt=%d host=%s port=%u",
1344-
rt, s_gw_host, s_gw_port);
1343+
// PR_ERR("acp tcp connect failed rt=%d host=%s port=%u",
1344+
// rt, s_gw_host, s_gw_port);
13451345
tal_net_close(fd);
13461346
return rt;
13471347
}
1348-
PR_INFO("acp tcp connected fd=%d host=%s:%u",
1348+
PR_NOTICE("acp tcp connected fd=%d host=%s:%u",
13491349
fd, s_gw_host, s_gw_port);
13501350

13511351
rt = __ws_upgrade(fd, s_gw_host, (uint16_t)s_gw_port);
@@ -1425,7 +1425,7 @@ static void acp_client_task(void *arg)
14251425
if (s_ctx.state == ACP_STATE_DISCONNECTED) {
14261426
OPERATE_RET rt = __connect_and_handshake();
14271427
if (rt != OPRT_OK) {
1428-
PR_WARN("acp connect failed, retry in %dms", ACP_CLIENT_RECONNECT_MS);
1428+
// PR_WARN("acp connect failed, retry in %dms", ACP_CLIENT_RECONNECT_MS);
14291429
tal_system_sleep(ACP_CLIENT_RECONNECT_MS);
14301430
continue;
14311431
}

0 commit comments

Comments
 (0)