ESP8266 Developer Zone The Official ESP8266 Forum 2016-05-27T11:33:20+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=2220 2016-05-27T11:33:20+08:00 2016-05-27T11:33:20+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2220&p=7102#p7102 <![CDATA[Re: mesh sent fail]]>
achao1104 wrote:
alen你好,

调用espconn_mesh_sent(&ser_conn, (uint8_t *)header, header->len); 会发生如下错误,什么原因呢?偶尔发生。


cidx:-1
pkt-idx:0, cidx:-1, usr:1
mesh sent fail -1
94.rip:139.196.107.200rp:7000, lp:48483
esp_mesh_con_cb

header = (struct mesh_header_format *)espconn_mesh_create_packet(
dst, // destiny address
sta, // source address
false, // not p2p packet
true, // piggyback congest request
M_PROTO_BIN, // packe with JSON format
datalen, // data length
false, // no option
0, // option len
false, // no frag
0, // frag type, this packet doesn't use frag
false, // more frag
0, // frag index
0); // frag length


Mesh just holds one packet for user, if it doesn't send the packet out, and user tries to send another packet, mesh will notify that it is busy.

Statistics: Posted by Guest — Fri May 27, 2016 11:33 am


]]>
2016-05-26T12:36:13+08:00 2016-05-26T12:36:13+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2220&p=7087#p7087 <![CDATA[mesh sent fail]]>
调用espconn_mesh_sent(&ser_conn, (uint8_t *)header, header->len); 会发生如下错误,什么原因呢?偶尔发生。


cidx:-1
pkt-idx:0, cidx:-1, usr:1
mesh sent fail -1
94.rip:139.196.107.200rp:7000, lp:48483
esp_mesh_con_cb

header = (struct mesh_header_format *)espconn_mesh_create_packet(
dst, // destiny address
sta, // source address
false, // not p2p packet
true, // piggyback congest request
M_PROTO_BIN, // packe with JSON format
datalen, // data length
false, // no option
0, // option len
false, // no frag
0, // frag type, this packet doesn't use frag
false, // more frag
0, // frag index
0); // frag length

Statistics: Posted by achao1104 — Thu May 26, 2016 12:36 pm


]]>