按照sdk文档中的描述,没有找到 espconn_connect返回1这种情况的解释啊,但是我实际上遇到了返回1的情况,怎么回事?
-------------以下是SDK文档68页的内容---------
功能:
连接 TCP server (ESP8266 作为 TCP client).
函数定义:
sint8 espconn_connect(struct espconn *espconn)
参数:
struct espconn *espconn : 对应⺴⽹网络连接的结构体
返回:
0 : 成功
Non-0 : 失败,返回错误码
ESPCONN_ARG - 未找到参数 espconn 对应的 TCP 连接
ESPCONN_MEM - 空间不⾜足
ESPCONN_ISCONN - 连接已经建⽴立
ESPCONN_RTE - 路由异常
5. espconn_connect
功能:
连接 TCP server (ESP8266 作为 TCP client).
函数定义:
sint8 espconn_connect(struct espconn *espconn)
参数:
struct espconn *espconn : 对应⺴⽹网络连接的结构体
返回:
0 : 成功
Non-0 : 失败,返回错误码
ESPCONN_ARG - 未找到参数 espconn 对应的 TCP 连接
ESPCONN_MEM - 空间不⾜足
ESPCONN_ISCONN - 连接已经建⽴立
ESPCONN_RTE - 路由异常
espconn_connect返回1是怎么回事?
Re: espconn_connect返回1是怎么回事?
Postby ESP_Faye » Tue May 26, 2015 2:23 pm
您好,
espconn_connect 返回非 0 值,均表示连接失败。
麻烦在 SDK_v1.1.0 的基础上,更新附件的 lib 测试。
espconn_connect 返回非 0 值,均表示连接失败。
麻烦在 SDK_v1.1.0 的基础上,更新附件的 lib 测试。
- Attachments
-
- libnet80211.zip
- (232.3 KiB) Downloaded 655 times
Who is online
Users browsing this forum: No registered users and 134 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.