logo elektroda
logo elektroda
X
logo elektroda

NodeMCU Access Point: Auto Redirect to login.html on Client Connection

karolpila 1962 10
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 16101871
    karolpila
    Level 9  
    Hello,
    I have set up my NodeMCU as an Acces Point. I have uploaded a page to it called login.html.
    I would like it to automatically open the login.html page when I access this AP and open my browser.
    Can you please suggest how to do this ?
    Thank you in advance :-)
  • ADVERTISEMENT
  • #2 16102001
    el2010tmp
    Level 25  
    Isn't it enough to call the page index.html by any chance?
  • ADVERTISEMENT
  • #4 16103484
    Anonymous
    Anonymous  
  • #5 16105121
    karolpila
    Level 9  
    Hmmm..... I switched from Ardunio to Node and did not write in LUA.
    do you have any ready to use tools that I could adopt ? :-)
  • ADVERTISEMENT
  • #6 16105220
    Anonymous
    Anonymous  
  • #7 16109740
    krzbor
    Level 28  
    I don't think that's possible. You have to enter an address in your browser. You can, of course, enter that address as the browser's home page address, but I don't know if that's what you mean. Connecting to the AP does not start communication over TCP. Even if you try to do it from the AP side, the browser will reject it (although the firewall will probably block it beforehand). Generally - the page request has to come from the browser.
  • ADVERTISEMENT
  • #8 16110036
    karolpila
    Level 9  
    Well that's exactly the problem.
    I read somewhere about router redirection..... something like that in airports, pubs, McDonald's.....
    You log on to the free network, open GOOGLE and there is the login page.
    ...... This is what I mean.
  • #9 16110415
    Anonymous
    Anonymous  
  • #10 16110432
    Anonymous
    Anonymous  
  • #11 16110436
    krzbor
    Level 28  
    You have it well described in the thread you quoted. It involves the user initiating the connection (accessing some page).
ADVERTISEMENT