espconn_send返回值的错误

wenqiangzxy
Posts: 9
Joined: Tue Oct 08, 2019 11:11 am

espconn_send返回值的错误

Postby wenqiangzxy » Mon Nov 11, 2019 5:46 pm

char buff[4] = {1,2,3,4};
uint8_t temp;
temp = espconn_send(&pesp_conn, buff, 4);
os_printf("temp = %d\n",temp);
//add system_os_post here
system_os_post(USER_TASK_PRIO_1,MOSI,0);
GPIO_OUTPUT_SET(0, 1);//用于通知主机,数据已经读取完成
在这段函数里面我的espconn_send发送函数的返回值串口打印出来为244,而且我接受buff的服务端也没有接收到数据。所以请问一下这个244是什么错误?

Her Mary
Posts: 446
Joined: Mon Oct 27, 2014 11:09 am

Re: espconn_send返回值的错误

Postby Her Mary » Fri Nov 29, 2019 11:09 am

建议你使用新版的 ESP8266 RTOS https://github.com/espressif/ESP8266_RT ... r/examples,不要用旧版 nonOS SDK 了。

Who is online

Users browsing this forum: No registered users and 11 guests