diff --git a/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/include/net_config.h b/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/include/net_config.h index 0a3c173..6b64ef8 100644 --- a/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/include/net_config.h +++ b/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/include/net_config.h @@ -36,7 +36,7 @@ extern "C" { /* The number of sockets, the maximum is 31 */ #define WCHNET_MAX_SOCKET_NUM (WCHNET_NUM_IPRAW+WCHNET_NUM_UDP+WCHNET_NUM_TCP+WCHNET_NUM_TCP_LISTEN) -#define WCHNET_TCP_MSS 576 //1024 //1460 /* Size of TCP MSS*/ +#define WCHNET_TCP_MSS 700 //576 //1024 //1460 /* Size of TCP MSS*/ #define WCHNET_NUM_POOL_BUF (WCHNET_NUM_TCP*2+2) /* The number of POOL BUFs, the number of receive queues */ diff --git a/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/include/tcp_json_srv.h b/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/include/tcp_json_srv.h index 6e7c718..007ba48 100644 --- a/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/include/tcp_json_srv.h +++ b/vd960DBN/BLE/OnlyUpdateApp_Peripheral/APP/include/tcp_json_srv.h @@ -17,7 +17,7 @@ * Protocol Constants *===========================================================================*/ #define TCP_JSON_PORT 5960 // TCP JSON protocol default port -#define TCP_JSON_MAX_FRAME 4096 // Max JSON frame length +#define TCP_JSON_MAX_FRAME 800 //4096 // Max JSON frame length #define TCP_JSON_AUTH_TIMEOUT_MS 60000 // 60s auth timeout (ms) #define TCP_JSON_RECV_BUF_LEN (TCP_JSON_MAX_FRAME * 2) #define TCP_JSON_MAX_PWD_RETRY 3 // Max password retries before lockout