简体   繁体   English

ESP8266 Captive Portal 并跳转到“正常”浏览器

[英]ESP8266 Captive Portal and jump to “normal” Browser

I like to run some esp8288 with some custemizing or controles in AP mode.我喜欢在 AP 模式下运行一些带有一些自定义或控件的 esp8288。 To make it easyer to use I like to use the captive portal function to make the access easyer for the user.为了使其更易于使用,我喜欢使用强制门户 function 以使用户更轻松地访问。 So the after connecting the captive portal will pop up eg on Iphone and it shows only one link like "open on Browser".因此,连接强制门户后会弹出例如在 Iphone 上,它只显示一个链接,如“在浏览器上打开”。

I already learnd that the portal app is only let you use a link to eg safari if the server sends a webpage like:我已经了解到,如果服务器发送如下网页,则门户应用程序仅允许您使用指向例如 safari 的链接:

<HTML><HEAD><TITLE>Success</TITLE></HEAD><BODY>Success</BODY></HTML>

but I was not able to find a way how this is possible.但我无法找到一种方法来实现这一点。

Does somebody already managed that on a ESP8266.是否有人已经在 ESP8266 上进行了管理。 I already tryed to analyse pages from T-Online or vodafone where this is possible, but without an result.我已经尝试分析来自 T-Online 或沃达丰的页面,但没有结果。

Jens延斯

The WiFiManager library, surtenly, does not provide such an option to open full (not mini) browser, but just to save WiFi credentials and turn WiFi STAtion mode. WiFiManager 库不提供这样的选项来打开完整的(不是迷你的)浏览器,而只是为了保存 WiFi 凭据并打开 WiFi STation 模式。 Would be nice to see the WireShark sniff of the T-Online and/or Vodafone captive logins to see how they done.很高兴看到 T-Online 和/或 Vodafone 强制登录的 WireShark 嗅探,看看他们是如何完成的。 Actually the <TITLE>Success</TITLE> response You mention, tells the mini-browser its already the Internet connection (not captive portal) and it can close实际上,您提到的<TITLE>Success</TITLE>响应告诉迷你浏览器它已经是 Internet 连接(不是强制门户),它可以关闭

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM