homieiot / homie-esp8266

💡 ESP8266 framework for Homie, a lightweight MQTT convention for the IoT
http://homieiot.github.io/homie-esp8266
MIT License
1.36k stars 308 forks source link

Captive Portal Not Loading iPhone and Mac #476

Closed BTopbas closed 6 years ago

BTopbas commented 6 years ago

Hello everyone. I am new with homie. I flashed basic code and flashed ui_bundle.gz to data/homie folder my esp8266. But in iPhone and Mac captive portal not loading. Here is the screenshoots.

When i go in safari go to 192.168.123.1 url i see this.

When i go in google chrome go to 192.168.123.1 url i see this.

And my macbook(HighSierra) connect esp8266 wifi, opens up captive portal but show nothing. Blank white.

Working only with google chrome on mac and enter manually 192.168.123.1 then i see config web page.

I erased my esp8266 flash and reupload ui_bundle but same happened.. Apple's system want to download this file. Only mac with google chrome showing as webpage.

timpur commented 6 years ago

Odd, will look into

emil2099 commented 6 years ago

To add to this issue, I am getting:

rgriebl commented 6 years ago

This is a well known Safari bug on all platforms: Safari can handle gzip compression perfectly fine - as long as the file extension is NOT ".gz". So simply renaming ui_bundle.gz to ui_bundle.htmlgz (plus adjusting CONFIG_UI_BUNDLE_PATH[] in Constants.hpp) fixes the problem. Just tested with iOS and macOS.

timpur commented 6 years ago

okay good to know, ill see if i can strip with file extension in homie as it responds