Browse Source

update(VK_Client):添加测试相关配置

dev-rebuild
jujihjuji 3 months ago
parent
commit
25026c869e
  1. 6
      applications/VK_Client.c
  2. 1
      applications/VK_Client.h

6
applications/VK_Client.c

@ -232,12 +232,18 @@ int16_t client_tcp_connect(Cclient_t *client) {
0 != BSP_LTE_SendCmd(cmd_cmd, cmd_str, DEFAULT_ERROR,
LTE_CMD_WAIT_LLONG)) {
client_tcp_close(client);
#ifdef debug_mode
EC800K_Reset();
client->error_cnt = 0;
return 0;
#else
client->error_cnt++;
if (client->error_cnt > 5) {
EC800K_Reset();
client->error_cnt = 0;
return 0;
}
#endif
}
client->connect_sta = true;
client->error_cnt = 0;

1
applications/VK_Client.h

@ -8,6 +8,7 @@
#include <stdint.h>
#include "drv_ec800k.h"
//#define debug_mode
typedef struct {
uint8_t match_stage;
uint8_t match_flag;

Loading…
Cancel
Save