uint8_t tcp_receive_id;
uint8_t tcp_receive_buf[100];
uint8_t tcp_receive_len;
怎么使用网口发送函数把数据发送出去?
i = WCHNET_SocketSend(tcp_receive_id, tcp_receive_buf, &tcp_receive_len);
if (i == WCHNET_ERR_SUCCESS)
{
WCHNET_SocketRecv(tcp_receive_id, NULL, &tcp_receive_len); //Clear sent data
}
老是警报,程序应该怎么写?