5117| 1
|
请问有人会使用netconn_recv这个函数吗 |
30金钱
最佳答案void process_rx_data(struct netbuf *buffer)
{
uint8_t *data;
uint16_t length;
/* get data */
netbuf_data(buffer, (void**)&data, &length);
printf("rx: %s\n", data);
}
| ||
| ||
|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )
GMT+8, 2024-11-25 07:31
Powered by OpenEdv-开源电子网
© 2001-2030 OpenEdv-开源电子网