mesh sent fail

achao1104
Posts: 6
Joined: Thu May 26, 2016 12:31 pm

mesh sent fail

Postby achao1104 » Thu May 26, 2016 12:36 pm

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

ESP_Alen

Re: mesh sent fail

Postby ESP_Alen » Fri May 27, 2016 11:33 am

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.

Who is online

Users browsing this forum: No registered users and 235 guests