- Wed May 22, 2019 1:16 am
#82421
have a look to the wifi events
Code: Select allfrom "user_interface.h" ...
enum {
EVENT_STAMODE_CONNECTED = 0,
EVENT_STAMODE_DISCONNECTED,
EVENT_STAMODE_AUTHMODE_CHANGE,
EVENT_STAMODE_GOT_IP,
EVENT_STAMODE_DHCP_TIMEOUT,
EVENT_SOFTAPMODE_STACONNECTED,
EVENT_SOFTAPMODE_STADISCONNECTED,
EVENT_SOFTAPMODE_PROBEREQRECVED,
EVENT_OPMODE_CHANGED,
EVENT_SOFTAPMODE_DISTRIBUTE_STA_IP,
EVENT_MAX
};
wifi event 7 just says your nodemcu wifi AP is being probed by some station around (likely the PC or the phone)
but you also say the nodemcu connects to your network
does that mean your nodemcu is configured as station + softap ?
two different interfaces with two different IPs and obviously two separate networks ?
which one is the web server listening on ?
sometimes, you're better off keeping things simple
and choose if you want your nodemcu to work as an independent AP or connected to your network
https://github.com/quackmore