connection to socket

cgfoed
Posts: 10
Joined: Thu Jul 18, 2019 6:40 am

connection to socket

Postby cgfoed » Tue Jul 23, 2019 10:02 am

I'm still new to the ESP32-MDF world and got stuck with a relatively basic problem.


Im running the softAP example on one wroom module and added a task to implement neil kolbans server implementation:
https://github.com/nkolban/esp32-snippe ... ets/server

I can connect to the wifi using my iphone and was able to connect to the server as well. Some additional log-prints from the server side confirmed that.

Now I'm trying to run esp-mdf/examples/function_demo/mwifi/router/ on a second wroom
Wifi connection works fine - but I cant get the client to connect to my tcp server.
I added a"socket created" - line for debugging purposes. Other then that I changed nothing to the code so far - only wrote the sdkconfig.

Code: Select all

I (432629) [router_example, 55]: socket created, sockfd: 63
W (432636) [router_example, 58]: socket connect, ret: -1, ip: 192.168.4.1, port: 8001
I (433141) [router_example, 43]: Create a tcp client, ip: 192.168.4.1, port: 8001
I (433142) [router_example, 55]: socket created, sockfd: 54
W (433149) [router_example, 58]: socket connect, ret: -1, ip: 192.168.4.1, port: 8001
I (433653) [router_example, 43]: Create a tcp client, ip: 192.168.4.1, port: 8001
I (433654) [router_example, 55]: socket created, sockfd: 55
W (433660) [router_example, 58]: socket connect, ret: -1, ip: 192.168.4.1, port: 8001
I (434165) [router_example, 43]: Create a tcp client, ip: 192.168.4.1, port: 8001
I (434166) [router_example, 55]: socket created, sockfd: 56
W (434172) [router_example, 58]: socket connect, ret: -1, ip: 192.168.4.1, port: 8001
I (434677) [router_example, 43]: Create a tcp client, ip: 192.168.4.1, port: 8001
I (434678) [router_example, 55]: socket created, sockfd: 57
W (434685) [router_example, 58]: socket connect, ret: -1, ip: 192.168.4.1, port: 8001
I (435189) [router_example, 43]: Create a tcp client, ip: 192.168.4.1, port: 8001
I (435190) [router_example, 55]: socket created, sockfd: 58
W (435194) [router_example, 58]: socket connect, ret: -1, ip: 192.168.4.1, port: 8001
I (435701) [router_example, 43]: Create a tcp client, ip: 192.168.4.1, port: 8001
I (435702) [router_example, 55]: socket created, sockfd: 59
W (435706) [router_example, 58]: socket connect, ret: -1, ip: 192.168.4.1, port: 8001
I (436213) [router_example, 43]: Create a tcp client, ip: 192.168.4.1, port: 8001
I (436214) [router_example, 55]: socket created, sockfd: 60
W (436221) [router_example, 58]: socket connect, ret: -1, ip: 192.168.4.1, port: 8001
I (436725) [router_example, 43]: Create a tcp client, ip: 192.168.4.1, port: 8001
I (436726) [router_example, 55]: socket created, sockfd: 61
W (436732) [router_example, 58]: socket connect, ret: -1, ip: 192.168.4.1, port: 8001
I (437237) [router_example, 43]: Create a tcp client, ip: 192.168.4.1, port: 8001
I (437238) [router_example, 55]: socket created, sockfd: 62
W (437244) [router_example, 58]: socket connect, ret: -1, ip: 192.168.4.1, port: 8001
I (437749) [router_example, 43]: Create a tcp client, ip: 192.168.4.1, port: 8001
I (437750) [router_example, 55]: socket created, sockfd: 63
W (437754) [router_example, 58]: socket connect, ret: -1, ip: 192.168.4.1, port: 8001
I (438261) [router_example, 43]: Create a tcp client, ip: 192.168.4.1, port: 8001
I (438262) [router_example, 55]: socket created, sockfd: 54
are there some obvious flaws in my setup? A different port on both sides wasn't the answer either.

ESP_LBB
Posts: 101
Joined: Fri May 18, 2018 3:41 am

Re: connection to socket

Postby ESP_LBB » Thu Jul 25, 2019 7:40 am

Just for a note, this issue is followed in github in case anyone else faces the same problem, https://github.com/espressif/esp-mdf/issues/71

Who is online

Users browsing this forum: No registered users and 1 guest