how to get socket on Ethernet and Wifi at the same time?

srdjan
Posts: 1
Joined: Wed Apr 01, 2020 9:08 pm

how to get socket on Ethernet and Wifi at the same time?

Postby srdjan » Wed Apr 01, 2020 9:14 pm

how to simultaneously have Ethernet and WiFi with tcp ip stack on booth.

For example:
utp client example could be configured to be ether on Ethernet or WiFi.
No example for booth of them simultaneously.

Any idea, suggestion?

ESP_Sprite
Posts: 3469
Joined: Thu Nov 26, 2015 4:08 am

Re: how to get socket on Ethernet and Wifi at the same time?

Postby ESP_Sprite » Thu Apr 02, 2020 7:59 am

I don't think there is anything special you need to do wrt sockets in that example, as the UDP socket is bound to INADDR_ANY which means an incoming connection can come from any interface. Just bring both WiFi and Ethernet up (make sure they're not on the same network, though), and it should work.

Who is online

Users browsing this forum: XHYZN_Marshall and 50 guests