-->
Page 3 of 4

Re: Captive portal issues

PostPosted: Fri Jan 01, 2016 5:42 pm
by ToSa
I'm using 1.5 right now. Will recompile with 1.3 and report back if that solved the issues.

Re: Captive portal issues

PostPosted: Mon Jan 11, 2016 3:37 pm
by mharizanov
ToSa wrote:I'm using 1.5 right now. Will recompile with 1.3 and report back if that solved the issues.

Curious if that worked for you or is it just me..

Re: Captive portal issues

PostPosted: Fri Jan 22, 2016 10:36 pm
by Sprite_tm
If you have had trouble with the 1.5 SDK and captive portals, can you retry the latest Git branch? Seems something changed around 1.4/1.5 and I fixed it in the latest set of commits.

Re: Captive portal issues

PostPosted: Sat Jan 23, 2016 6:00 am
by mharizanov
@Sprite_tm latest git did the trick. Just removed a "to" suffix to espconn_send, not sure why you had it there.

remot_info *remInfo=NULL;
//Send data to port/ip it came from, not to the ip/port we listen on.
if (espconn_get_connection_info(conn, &remInfo, 0)==ESPCONN_OK) {
conn->proto.udp->remote_port=remInfo->remote_port;
memcpy(conn->proto.udp->remote_ip, remInfo->remote_ip, sizeof(remInfo->remote_ip));
}
espconn_sendto(conn, (uint8*)reply, rend-reply);