idolpx / mobile-rr Goto Github PK
View Code? Open in Web Editor NEWESP8266 Mobile Rick Roll Captive Portal
ESP8266 Mobile Rick Roll Captive Portal
Summary: Changing the SSID variable in the @@@ section has no effect on the actual SSID used when the code is running.
Details: In the section marked // Global data section I changed the default value to:
char ssid[] = "Free Hi-Speed WiFi";
However, the default SSID continues to broadcast. It doesn't matter what new value I use, the original value is broadcast.
More info: I assume that the original default SSID is hardcoded somewhere but I simply cannot find it. I've wiped and reloaded SPIFFS storage as well as searching both the storage files and source code, but I can't find where this is happening. I'm happy to help fix if anyone can point me in the right direction!
I just started playing around with this and I have some ideas for improvements:
When trying to compile this project following HOWTO, I have multiple errors:
WiFiClientSecure.cpp:(.text.ax_port_write+0x1c): multiple definition of `ax_port_write'
.pioenvs/d1_mini/libESPAsyncTCP_ID305.a(lwipr_compat.o):lwipr_compat.c:(.text.ax_port_write+0xc): first defined here
.pioenvs/d1_mini/libESP8266WiFi.a(WiFiClientSecure.o): In function `ax_get_file':
WiFiClientSecure.cpp:(.text.ax_get_file+0x0): multiple definition of `ax_get_file'
.pioenvs/d1_mini/libESPAsyncTCP_ID305.a(lwipr_compat.o):lwipr_compat.c:(.text.ax_get_file+0x0): first defined here
.pioenvs/d1_mini/libESP8266WiFi.a(WiFiClientSecure.o): In function `ax_wdt_feed':
.pioenvs/d1_mini/libESP8266WiFi.a(WiFiClientSecure.o): In function `ax_wdt_feed':
WiFiClientSecure.cpp:(.text.ax_wdt_feed+0x8): multiple definition of `ax_wdt_feed'
.pioenvs/d1_mini/libESPAsyncTCP_ID305.a(lwipr_compat.o):lwipr_compat.c:(.text.ax_wdt_feed+0x0): first defined here
collect2: error: ld returned 1 exit status
scons: *** [.pioenvs/d1_mini/firmware.elf] Error 1
I have latest Platform IDE installed, running IDE v1.4.0, and CLI 2.11.2
Platform espressif is installed via CLI.
Any idea?? :)
sadly after connecting to 'FREE Highspeed WiFi' my phone did not open loading/welcome page android 7.0
As a noob I saw this project in a recent edition of Make Magazine (April 1st pranks) and through it looked well documented and straightforward.
Unfortunately I can't get this to work according to the instructions, is this still functional? If not, is there a way to do this via Arduino IDE rather than platformio?
please change "ESPAsyncWebServer" to "ESP Async WebServer" in lib_deps
lib_deps =
ArduinoJson
ESPAsyncTCP
ESP Async WebServer
Using VS and PIO, was able to compile using a PIO sample project, but not the mobile-rr. I get a lot of errors in the compile, probably something simple but I'm just a hardware guy and not a SW hacker. Here is a bit of the error message;
Compiling .pio\build\d1_mini_pro\src\mobile-rr.ino.cpp.o
In file included from .pio\libdeps\d1_mini_pro\ArduinoJson\src/ArduinoJson.hpp:42,
from .pio\libdeps\d1_mini_pro\ArduinoJson\src/ArduinoJson.h:9,
from C:/Users/rODNEY/Documents/RickRoll project/mobile-rr-master/mobile-rr-master/src/mobile-rr.ino:36:
.pio\libdeps\d1_mini_pro\ArduinoJson\src/ArduinoJson/Variant/ConverterImpl.hpp:84:19: error: template argument 1 is invalid
Error compiling using PlatformIO, is there something missing from the libraries?
error: '_ws_client' was not declared in this scope
Compiling .pioenvs\d1_mini\FrameworkArduino\debug.o
Compiling .pioenvs\d1_mini\FrameworkArduino\heap.o
*** [.pioenvs\d1_mini\src\mobile-rr.ino.o] Error 1
Does anyone know how to disconnect a specific station that is connected to the ESP?
I know how to list connected stations. You can see that when you type the "info" command into the console.
Any ideas?
Whenever I try to upload I get the error 'class DNSServer' has no member named 'onquery'. Any suggestions?
When changing the SSID, the change is not applied.
It seems line 477 causes this behaviour:
if ( config.channel != chan_selected ) // || config.ssid != ssid) )
If I change this to if (1==1)
then the code after that is applied and the access point is spawned with the new SSID,
If I uncomment the OR clause then I receive an error:
comparison between distinct pointer types 'uint8* {aka unsigned char*}' and 'char*' lacks a cast [-fpermissive]
I do not have a lot of knowledge about changing this type, but will dive into this. Any help of course is appreciated.
When connecting on an iOS or OSX device the captive portal is detected and a browser window pops up like it should to be able to accept the agreement and then get rick roll'd. It doesn't launch the browser window on Android though.
PIO (IDE 1.6.0 | CLI 3.1.0) is not autodetecting the dependent libraries, and causing issues. Can we just define all the required libraries on platformio.ini?
Hi
I set a new username and password for the console. I set the username as test and the password as test. For some reason, I can't login to the console with these credentials. I double checked I typed them correctly and have checked capitals, spelling, etc.
I have also attempted to reflash the firmware on the device - both parts. The SSID stays the same and I still can't log in.
Any advice on how to reflash it properly?
Thanks
When trying to compile the project in PlatformIO (IDE 1.2.0 and CLI 2.11.2) - installed fresh on a Windows 10 Pro 64bit machine because of this project - and project downloaded from github today (after several failed attempts to compile and upload it using Arduino IDE) i receive errors while compiling:
In file included from C:\Users\morfo.platformio\packages\framework-arduinoespressif\tools\sdk\include/user_interface.h:11:0,
from C:/Users\morfo\Documents/platformio/mobile-rr-master/src/mobile-rr.ino:42:
C:/Users\morfo\Documents/platformio/mobile-rr-master/src/mobile-rr.ino: In function 'void setup()':
C:\Users\morfo.platformio\packages\framework-arduinoespressif\tools\sdk\lwip\include/lwip/ip_addr.h:220:43: error: invalid cast from type 'IPAddress' to type 'u8_t* {aka unsigned char*}'
^
C:\Users\morfo.platformio\packages\framework-arduinoespressif\tools\sdk\lwip\include/lwip/ip_addr.h:226:38: note: in expansion of macro 'ip4_addr1'
^
C:\Users\morfo.platformio\packages\framework-arduinoespressif\tools\sdk\lwip\include/lwip/ip_addr.h:240:24: note: in expansion of macro 'ip4_addr1_16'
^
C:/Users\morfo\Documents/platformio/mobile-rr-master/src/mobile-rr.ino:329:3: note: in expansion of macro 'IP2STR'
) ;
^
C:\Users\morfo.platformio\packages\framework-arduinoespressif\tools\sdk\lwip\include/lwip/ip_addr.h:221:43: error: invalid cast from type 'IPAddress' to type 'u8_t* {aka unsigned char*}'
^
C:\Users\morfo.platformio\packages\framework-arduinoespressif\tools\sdk\lwip\include/lwip/ip_addr.h:227:38: note: in expansion of macro 'ip4_addr2'
^
C:\Users\morfo.platformio\packages\framework-arduinoespressif\tools\sdk\lwip\include/lwip/ip_addr.h:241:5: note: in expansion of macro 'ip4_addr2_16'
ip4_addr2_16(ipaddr),
^
C:/Users\morfo\Documents/platformio/mobile-rr-master/src/mobile-rr.ino:329:3: note: in expansion of macro 'IP2STR'
) ;
^
C:\Users\morfo.platformio\packages\framework-arduinoespressif\tools\sdk\lwip\include/lwip/ip_addr.h:222:43: error: invalid cast from type 'IPAddress' to type 'u8_t* {aka unsigned char*}'
^
C:\Users\morfo.platformio\packages\framework-arduinoespressif\tools\sdk\lwip\include/lwip/ip_addr.h:228:38: note: in expansion of macro 'ip4_addr3'
^
C:\Users\morfo.platformio\packages\framework-arduinoespressif\tools\sdk\lwip\include/lwip/ip_addr.h:242:5: note: in expansion of macro 'ip4_addr3_16'
ip4_addr3_16(ipaddr),
^
C:/Users\morfo\Documents/platformio/mobile-rr-master/src/mobile-rr.ino:329:3: note: in expansion of macro 'IP2STR'
) ;
^
...(several more repetitions of the above)
This is incidentally exactly the same error i gut stuck at in the Arduino IDE and the reason i decided to give PlatformIO a try.
Hello,
today I tried to compile and upload the code to my D1 mini but it wont work.
Here is my platformio.ini
https://hastebin.com/eqilubojez.makefile
And my console output with exact message:
https://hastebin.com/hesoyefumi.tex
Please share some knowledge 👍
Thanks
I'm just wondering how you got the mp3s so small. I was looking to see if I could condense the files down to get them to fit better on an esp-01 with a 1m chip but trying to reduce the bitrate on the mp3 files produces a bigger file. Thus I'm wondering what was used to get them so small.
New to all of this. Had some fun experimenting with my new ESP8266 until I stumbled upon this. I decided to try it but now im having issues. If anyone could help that would be nice
Uploading to the WeMos D1 mini goes well and a "sign into WiFi network" notification pops up. But clicking on it shows an error that says too many redirects. Any help?
If embed_media is used to further combine the data files, the captive portal helpers in iOS/OSX don't automatically display the TOS page when connecting to the access point.
Windows Mobile seems to be fine and the Android captive portal helper has always been an issue for me on my Samsung Galaxy S5.
mobile-rr.ino:573:10: error: 'class DNSServer' has no member named 'onQuery'
Hi, I tried the code on a Nodemcu (ESP-12e)
Compiling and flashing works (After some attempts)
But I always get an error Message on my Phone (Android 7):
"Error to many redirects"
or
"The page isn't redirecting properly - Firefox has detected that the server is redirecting the request for this address in a way that will never complete."
When you enter "beep rr" in the console it should play the startup tune.
It doesn't though. I'm not sure why. The same function works fine at bootup.
It comes up and accepts commands and I can see that the commands are being sent to the ESP8266 through the serial console but the results are not returned in the browser.
Hi
Even after downgrading ArduinoJson, the project still refuses to built. These are the errors I have:
> Executing task: C:\Users\User\.platformio\penv\Scripts\platformio.exe run <
Processing d1_mini (framework: arduino; platform: espressif8266; board: d1_mini)
-----------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/d1_mini.html
PLATFORM: Espressif 8266 2.2.3 > WeMos D1 R2 and mini
HARDWARE: ESP8266 160MHz, 80KB RAM, 4MB Flash
PACKAGES: toolchain-xtensa 2.40802.190218 (4.8.2), tool-esptool 1.413.0 (4.13), tool-esptoolpy 1.20600.0 (2.6.0), framework-arduinoespressif8266 2.20502.0 (2.5.2)
Converting mobile-rr.ino
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 32 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <ArduinoJson> 5.13.4
|-- <ESPAsyncTCP> 1.2.2
| |-- <ESP8266WiFi> 1.0
|-- <ESP Async WebServer> 1.2.3
| |-- <ESPAsyncTCP> 1.2.2
| | |-- <ESP8266WiFi> 1.0
| |-- <Hash> 1.0
| |-- <ESP8266WiFi> 1.0
| |-- <ArduinoJson> 5.13.4
|-- <Hash> 1.0
|-- <ESP8266WiFi> 1.0
|-- <ESP8266mDNS> 1.2
| |-- <ESP8266WiFi> 1.0
|-- <DNSServer>
| |-- <ESP8266WiFi> 1.0
|-- <EEPROM> 1.0
|-- <Ticker> 1.0
|-- <ArduinoOTA> 1.0
| |-- <ESP8266WiFi> 1.0
| |-- <ESP8266mDNS> 1.2
| | |-- <ESP8266WiFi> 1.0
TypeError: a2b_base64() argument 1 must be string or buffer, not None:
File "C:\Users\User\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 156:
env.SConscript(item, exports="env")
File "C:\Users\User\.platformio\packages\tool-scons\script\..\engine\SCons\Script\SConscript.py", line 541:
return _SConscript(self.fs, *files, **subst_kw)
File "C:\Users\User\.platformio\packages\tool-scons\script\..\engine\SCons\Script\SConscript.py", line 250:
exec _file_ in call_stack[-1].globals
File "C:\Users\User\Desktop\mobile-rr-master\www_proc.py", line 193:
options = base64.b64decode(ARGUMENTS.get("CUSTOM_OPTION"))
File "C:\Users\User\.platformio\python27\Lib\base64.py", line 75:
return binascii.a2b_base64(s)
=============================================================== [FAILED] Took 4.61 seconds ===============================================================
The terminal process terminated with exit code: 1
Terminal will be reused by tasks, press any key to close it.
I have tried these both in Atom and VSCode but it does not work in both. Is anyone able to help me here?
Many thanks
On Android with Chrome, the index.htm page does not load, and gives the error message:
freewifi.cow redirected you too many times.
ERR_TOO_MANY_REDIRECTS
The 10,10,10,1 console page just shows a blank page.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.