*/
bool WebSocketClientIsConnected(int client);
+/**
+ @brief suspend a WebSocket connection.
+ @param client Client fd.
+ @return 0 if success; non-0 otherwise. For details about error codes, see {@link WebsocketErrCode}.
+ */
+int WebsocketSuspend(int client);
+
+/**
+ @brief resume a WebSocket connection.
+ @param client Client fd.
+ @return 0 if success; non-0 otherwise. For details about error codes, see {@link WebsocketErrCode}.
+ */
+int WebsocketResume(int client);
+
#ifdef __cplusplus
}
#endif
#define PPP_UART_BAUDRATE 1000000
/* 支持的波特率列表(自适应模式) */
-#define PPP_BAUDRATE_AUTO_LIST {9600, 57600, 115200}
-#define PPP_BAUDRATE_AUTO_COUNT 3
+#define PPP_BAUDRATE_AUTO_LIST {115200,921600,1000000,2000000}
+#define PPP_BAUDRATE_AUTO_COUNT 4
/* 支持的固定波特率列表 */
#define PPP_BAUDRATE_FIXED_LIST {4800, 9600, 57600, 115200, 230400, 460800, 750000, 921600, 1000000, 2000000, 4000000}