-->
Page 1 of 1

two esp8266 one in ap+sta and the connected to the first

PostPosted: Sat Sep 19, 2020 10:23 am
by giannis
Hi there,

I have a setup of two esp8266

-) ap sta mode (esp8266 A).
-) connected to the first ones AP ( esp8266 B)
The A is connected to the local router and has access to the internet. Also A creates an AP.
The B can connect to the A's AP but the A cannot find it by hostname.

a)The hostname on B has been correctly configured using the #include <ESP8266mDNS.h> and has been tested and can be resolved but it seems esp8266 A cannot find the B board by hostname (although it's connected to it). It can only acces it by IP. Any ideas why is that ?

b) B cannot connect to the internet when connected to the A's AP. Seems like that the STA AP mode in A is not routing the requests of B to the internet. Is it possible for B to connect to the internet through A's AP.

Looking forward for any ideas!
Cheers

Re: two esp8266 one in ap+sta and the connected to the firs

PostPosted: Sun Sep 20, 2020 4:47 am
by JurajA
A) current MDNS works only on one interface. default is right now I think the STA. in core 3.00 MDNS will work on all interfaces (and Ethernet will be available as additional interface)

B) see the NAT library

Re: two esp8266 one in ap+sta and the connected to the firs

PostPosted: Sun Sep 20, 2020 1:16 pm
by giannis
JurajA wrote:A) current MDNS works only on one interface. default is right now I think the STA. in core 3.00 MDNS will work on all interfaces (and Ethernet will be available as additional interface)
Any roadmap of core 3? Any ideas if it'is working on the esp32?

B) see the NAT library

Thanks for this :) will try asap

Thanks for the reply.

Re: two esp8266 one in ap+sta and the connected to the firs

PostPosted: Sun Sep 20, 2020 2:05 pm
by JurajA
the mDNS update https://github.com/esp8266/Arduino/pull/7540
still " Changes requested. 2 reviews requesting changes"

about 3.00 release. Summer 2021?

I don't know about mDNS on esp32 arduino