-->
Page 1 of 2

AP + CLIENT AT SAME TIME?

PostPosted: Fri Jul 26, 2019 12:57 am
by CK321
Hi!

I have a nodeMcu which should receive json object from client via the UDP socket and re-send that json object to another Access Point(soft AP). The nodeMcu act as both AP and STA modes and it successfully got the client data packet but re-send part not working. Are there any solutions for that? (Sorry for my English :D )

Thanks.

Re: AP + CLIENT AT SAME TIME?

PostPosted: Mon Aug 05, 2019 7:19 am
by QuickFix
Let's see some code. :idea:

An ESP can work in 3 modes, so it shouldn't be a problem:
    STA (station)
  • AP (access point)
  • STA/AP (station & access point)
Maybe this site can get you going.

Re: AP + CLIENT AT SAME TIME?

PostPosted: Tue Aug 06, 2019 3:16 pm
by Freddie
If you want to use both (which is standard anyway), just set both modes using the command
Code: Select allWiFi.mode(WIFI_AP_STA);
before "WIFI.begin(...)". That'll do the trick. You'll find the necessary configuration on the website "QuickFix" did post.

CU Freddie

Re: AP + CLIENT AT SAME TIME?

PostPosted: Tue Aug 13, 2019 11:28 pm
by CK321
Freddie wrote:If you want to use both (which is standard anyway), just set both modes using the command
Code: Select allWiFi.mode(WIFI_AP_STA);
before "WIFI.begin(...)". That'll do the trick. You'll find the necessary configuration on the website "QuickFix" did post.

CU Freddie

Thanks for your advice. I figured out the reason. I used same IP range IP addresses for both access point. Then I change the IP range for both access point after that it worked.