Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

RickRoll using an ESP8266, just in time for halloween.
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

RickRoll using an ESP8266, just in time for halloween.

by ClockLoop on Sat Oct 29, 2016 2:51 pm

Oh I also found this sooo FUNNY AND AWESOME.

https://hackaday.io/project/12709-esp82 ... ive-portal

And got it running on an ESP, talk about HILARIOUS.

I was not able to get the PlatformIO to work due to code errors, but I WAS able to get ArduinoIDE to load it all.

The method to get a rick_rolled_esp to load using ArduinoIDE is in the readme.txt file in the attached zip.
mobile-rr.zip
(1010.28 KiB) Downloaded 142 times


If you need help getting this going on your esp in ArduinoIDE, just ask.

Heres the contents of the readme:
Code: Select all | TOGGLE FULL SIZE
The files in the Arduino folder go into your My Documents folder, you should already have the latest version of ArduinoIDE installed with the latest ESP8266 board files also installed.

Once you put those files in place restart ArduinoIDE

You now should see an entry under the tools menu labeled "ESP8266 Sketch Data Upload"

You need to select Flash Size: 4M (3M SPIFFS)

First try to compile the mobile-rr.ino file.

If you get compile errors you need to find and delete the duplicate file that is causing it, the files you NEED to keep are the files in the libraries folder that came with this readme.

Once you can compile it without error, upload it to your esp.

Then get your esp back into firmware programming mode, and click -> Tools -> "ESP8266 Sketch Data Upload"  This will upload the needed SPIFFS files.

Once the SPIFFS upload is done, restart your esp, and it should work.


https://hackaday.io/project/12709-esp8266-mobile-rick-roll-captive-portal

https://github.com/idolpx/mobile-rr

# ESP8266 Mobile Rick Roll Captive Portal
### Live Chat
[![Gitter](https://badges.gitter.im/idolpx/mobile-rr.svg)](https://gitter.im/idolpx/mobile-rr?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)

The purpose of this project was to help me get familiar with programming for the ESP8266 and have a bit of fun.

[![ESP8266 Mobile-RR](https://i.ytimg.com/vi/ZpcRZoXQAzM/hqdefault.jpg)](https://www.youtube.com/watch?v=ZpcRZoXQAzM)

* User connects to the device broadcasting an SSID of "FREE Highspeed WiFi" (this is configurable of course)
* The captive portal helper on their phone/table/computer kicks in and presents them with a page showing "Terms of Service" and a button labeled "I Accept"
* When they click the button a full screen animated GIF of Rick Astley dancing appears and an audio clip of "Never Gonna Give You Up" starts playing on loop along with a message in the bottom right letting them know they got rock rolled (Incase they don't understand what's going on)

On bootup, the buzzer plays a little bit of "Never Gonna Give You Up".
To access the console, connect to the ESP8266 Access Point and browse to "http://10.10.10.1/console".
From here you can monitor all connections and see when someone gets Rick Roll'd by the device.
The console also allows you to enter commands to get more info about the status of the device, change the SSID, get the Rick Roll count and even beep the buzzer.

The "debug" setting is on by default and shows you all DNS and HTTP requests made to the device. It's kind of cool to see all the sites that the apps on your phone are trying to access. Check out the screenshots of the console for a glimpse of what it looks like. Some apps are very noisy. You can toggle the "debug" off to not see that stuff.

## Parts List
* ESP8266 Module with 4MB of flash  (I used the WeMos D1 Mini) (http://www.aliexpress.com/snapshot/7833150367.html?orderId=76398745536320)
* Piezo buzzer (http://www.aliexpress.com/snapshot/7762649061.html?orderId=75910217556320)
* USB battery pack with micro-usb cable to power everything

## Wiring
Connect the '+' lead of the piezo to GPIO 4 (D2 on WeMos D1 Mini) and '-' lead to Ground.
I chose GPIO 4 because I installed the long leads with the headers on the WeMos D1 Mini. The spacing from ground was perfect to just plug the buzzer in direct between G & D2.

## Build Firmware
I use PlatformIO to build this.  http://platformio.org/

* Install PlatformIO and let it update itself on first startup
* Once updated and restarted, clone the "mobile-rr" project to a folder and open the project in PlatformIO
* Next build the firmware by clicking the checkmark icon on the toolbar

![Build Firmware](https://s20.postimg.org/e9mna84pp/build_firmware.png)

## Upload Firmware and SPIFFS data
After your firmware build is successful you can upload it by clicking the arrow under the checkmark in the PlatformIO toolbar.

![Upload Firmware](https://s20.postimg.org/ue4gppiot/upload_firmware.png)

You can add/edit the files in the "www" folder to your liking. (Files in the "www" folder will be cloned and gzipped to the "data" folder when building.) Then follow the instructions below to build and upload the SPIFFS file system image to your ESP8266.

![Upload SPIFFS 1](https://s20.postimg.org/p1ymo5v4t/build_spiffs.png)

![Upload SPIFFS 2](https://s20.postimg.org/vrw3l0hy5/image.png)

**Note: Anytime you make changes to the firmware or the data you can rebuild and upload either without the need to install the other again. They reside in different areas of the flash memory.**

## References
I learned everything I needed to create this from these projects

- PlatformIO - http://platformio.org/
-              http://docs.platformio.org/en/latest/platforms/espressif.html#uploading-files-to-file-system-spiffs
- ESP8266 Captive Portal - https://www.hackster.io/rayburne/esp8266-captive-portal-5798ff
- ESP-RADIO - https://github.com/Edzelf/Esp-radio
- ESPAsyncWebServer - https://github.com/me-no-dev/ESPAsyncWebServer
- SOFTAP - Get List of Connected Clients - http://www.esp8266.com/viewtopic.php?f=32&t=5669
- How to print free memory - http://forum.wemos.cc/topic/175/how-to-print-free-memory
- WebSocketToSerial - https://github.com/hallard/WebSocketToSerial.git
- JQueryTerminal - https://github.com/jcubic/jquery.terminal
- OTA Update - http://www.penninkhof.com/2015/12/1610-over-the-air-esp8266-programming-using-platformio/
- Piezo Beep - http://framistats.com/2015/06/07/esp8266-arduino-smtp-server-part-2/
- Simple Audio Board - http://bitcows.com/?p=19
- Tone Doesn't Work - https://www.reddit.com/r/esp8266/comments/46kw38/esp8266_calling_tone_function_does_not_work/
- ArduinoJson - https://github.com/bblanchon/ArduinoJson
- EEPROM - https://gist.github.com/dogrocker/f998dde4dbac923c47c1
- Exception Causes - https://github.com/esp8266/Arduino/blob/master/doc/exception_causes.md
- WiFi Scan- https://www.linuxpinguin.de/project/wifiscanner/
- SPIFFS - https://github.com/esp8266/Arduino/blob/master/doc/filesystem.md
-          http://blog.squix.org/2015/08/esp8266arduino-playing-around-with.html
- WiFiManager - https://github.com/tzapu/WiFiManager
- ESP-GDBStub - https://github.com/esp8266/Arduino/tree/master/libraries/GDBStub

ClockLoop
 
Posts: 58
Joined: Wed Aug 19, 2009 1:31 pm
Location: Minnesota

Re: RickRoll using an ESP8266, just in time for halloween.

by mattzzz on Sat Jul 01, 2017 3:46 am

I get compilation errors and have no clue what to do. Did reinstall everything. Any help/ideas is appriciated..

***


Arduino:1.8.3 (Windows 10), Kort:"WeMos D1 R2 & mini, 80 MHz, 921600, 4M (3M SPIFFS)"

In file included from C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/include/user_interface.h:11:0,

from \\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino:49:

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino: In function 'void setup()':

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:220:43: error: invalid cast from type 'IPAddress' to type 'u8_t* {aka unsigned char*}'

#define ip4_addr1(ipaddr) (((u8_t*)(ipaddr))[0])

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:226:38: note: in expansion of macro 'ip4_addr1'

#define ip4_addr1_16(ipaddr) ((u16_t)ip4_addr1(ipaddr))

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:240:24: note: in expansion of macro 'ip4_addr1_16'

#define IP2STR(ipaddr) ip4_addr1_16(ipaddr), \

^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino:391:9: note: in expansion of macro 'IP2STR'

IP2STR ( ip )

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:221:43: error: invalid cast from type 'IPAddress' to type 'u8_t* {aka unsigned char*}'

#define ip4_addr2(ipaddr) (((u8_t*)(ipaddr))[1])

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:227:38: note: in expansion of macro 'ip4_addr2'

#define ip4_addr2_16(ipaddr) ((u16_t)ip4_addr2(ipaddr))

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:241:5: note: in expansion of macro 'ip4_addr2_16'

ip4_addr2_16(ipaddr), \

^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino:391:9: note: in expansion of macro 'IP2STR'

IP2STR ( ip )

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:222:43: error: invalid cast from type 'IPAddress' to type 'u8_t* {aka unsigned char*}'

#define ip4_addr3(ipaddr) (((u8_t*)(ipaddr))[2])

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:228:38: note: in expansion of macro 'ip4_addr3'

#define ip4_addr3_16(ipaddr) ((u16_t)ip4_addr3(ipaddr))

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:242:5: note: in expansion of macro 'ip4_addr3_16'

ip4_addr3_16(ipaddr), \

^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino:391:9: note: in expansion of macro 'IP2STR'

IP2STR ( ip )

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:223:43: error: invalid cast from type 'IPAddress' to type 'u8_t* {aka unsigned char*}'

#define ip4_addr4(ipaddr) (((u8_t*)(ipaddr))[3])

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:229:38: note: in expansion of macro 'ip4_addr4'

#define ip4_addr4_16(ipaddr) ((u16_t)ip4_addr4(ipaddr))

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:243:5: note: in expansion of macro 'ip4_addr4_16'

ip4_addr4_16(ipaddr)

^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino:391:9: note: in expansion of macro 'IP2STR'

IP2STR ( ip ) ^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino: In lambda function:

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:220:43: error: invalid cast from type 'const IPAddress' to type 'u8_t* {aka unsigned char*}'

#define ip4_addr1(ipaddr) (((u8_t*)(ipaddr))[0])

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:226:38: note: in expansion of macro 'ip4_addr1'

#define ip4_addr1_16(ipaddr) ((u16_t)ip4_addr1(ipaddr))

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:240:24: note: in expansion of macro 'ip4_addr1_16'

#define IP2STR(ipaddr) ip4_addr1_16(ipaddr), \

^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino:511:75: note: in expansion of macro 'IP2STR'

dbg_printf ( "DNS Query [%d]: %s -> " IPSTR, remoteIP[3], domain, IP2STR ( resolvedIP ) );

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:221:43: error: invalid cast from type 'const IPAddress' to type 'u8_t* {aka unsigned char*}'

#define ip4_addr2(ipaddr) (((u8_t*)(ipaddr))[1])

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:227:38: note: in expansion of macro 'ip4_addr2'

#define ip4_addr2_16(ipaddr) ((u16_t)ip4_addr2(ipaddr))

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:241:5: note: in expansion of macro 'ip4_addr2_16'

ip4_addr2_16(ipaddr), \

^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino:511:75: note: in expansion of macro 'IP2STR'

dbg_printf ( "DNS Query [%d]: %s -> " IPSTR, remoteIP[3], domain, IP2STR ( resolvedIP ) );

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:222:43: error: invalid cast from type 'const IPAddress' to type 'u8_t* {aka unsigned char*}'

#define ip4_addr3(ipaddr) (((u8_t*)(ipaddr))[2])

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:228:38: note: in expansion of macro 'ip4_addr3'

#define ip4_addr3_16(ipaddr) ((u16_t)ip4_addr3(ipaddr))

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:242:5: note: in expansion of macro 'ip4_addr3_16'

ip4_addr3_16(ipaddr), \

^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino:511:75: note: in expansion of macro 'IP2STR'

dbg_printf ( "DNS Query [%d]: %s -> " IPSTR, remoteIP[3], domain, IP2STR ( resolvedIP ) );

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:223:43: error: invalid cast from type 'const IPAddress' to type 'u8_t* {aka unsigned char*}'

#define ip4_addr4(ipaddr) (((u8_t*)(ipaddr))[3])

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:229:38: note: in expansion of macro 'ip4_addr4'

#define ip4_addr4_16(ipaddr) ((u16_t)ip4_addr4(ipaddr))

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:243:5: note: in expansion of macro 'ip4_addr4_16'

ip4_addr4_16(ipaddr)

^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino:511:75: note: in expansion of macro 'IP2STR'

dbg_printf ( "DNS Query [%d]: %s -> " IPSTR, remoteIP[3], domain, IP2STR ( resolvedIP ) );

^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino: In lambda function:

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:220:43: error: invalid cast from type 'const IPAddress' to type 'u8_t* {aka unsigned char*}'

#define ip4_addr1(ipaddr) (((u8_t*)(ipaddr))[0])

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:226:38: note: in expansion of macro 'ip4_addr1'

#define ip4_addr1_16(ipaddr) ((u16_t)ip4_addr1(ipaddr))

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:240:24: note: in expansion of macro 'ip4_addr1_16'

#define IP2STR(ipaddr) ip4_addr1_16(ipaddr), \

^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino:524:78: note: in expansion of macro 'IP2STR'

dbg_printf ( "DNS Override [%d]: %s -> " IPSTR, remoteIP[3], domain, IP2STR ( overrideIP ) );

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:221:43: error: invalid cast from type 'const IPAddress' to type 'u8_t* {aka unsigned char*}'

#define ip4_addr2(ipaddr) (((u8_t*)(ipaddr))[1])

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:227:38: note: in expansion of macro 'ip4_addr2'

#define ip4_addr2_16(ipaddr) ((u16_t)ip4_addr2(ipaddr))

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:241:5: note: in expansion of macro 'ip4_addr2_16'

ip4_addr2_16(ipaddr), \

^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino:524:78: note: in expansion of macro 'IP2STR'

dbg_printf ( "DNS Override [%d]: %s -> " IPSTR, remoteIP[3], domain, IP2STR ( overrideIP ) );

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:222:43: error: invalid cast from type 'const IPAddress' to type 'u8_t* {aka unsigned char*}'

#define ip4_addr3(ipaddr) (((u8_t*)(ipaddr))[2])

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:228:38: note: in expansion of macro 'ip4_addr3'

#define ip4_addr3_16(ipaddr) ((u16_t)ip4_addr3(ipaddr))

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:242:5: note: in expansion of macro 'ip4_addr3_16'

ip4_addr3_16(ipaddr), \

^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino:524:78: note: in expansion of macro 'IP2STR'

dbg_printf ( "DNS Override [%d]: %s -> " IPSTR, remoteIP[3], domain, IP2STR ( overrideIP ) );

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:223:43: error: invalid cast from type 'const IPAddress' to type 'u8_t* {aka unsigned char*}'

#define ip4_addr4(ipaddr) (((u8_t*)(ipaddr))[3])

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:229:38: note: in expansion of macro 'ip4_addr4'

#define ip4_addr4_16(ipaddr) ((u16_t)ip4_addr4(ipaddr))

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:243:5: note: in expansion of macro 'ip4_addr4_16'

ip4_addr4_16(ipaddr)

^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino:524:78: note: in expansion of macro 'IP2STR'

dbg_printf ( "DNS Override [%d]: %s -> " IPSTR, remoteIP[3], domain, IP2STR ( overrideIP ) );

^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino: In lambda function:

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:220:43: error: invalid cast from type 'IPAddress' to type 'u8_t* {aka unsigned char*}'

#define ip4_addr1(ipaddr) (((u8_t*)(ipaddr))[0])

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:226:38: note: in expansion of macro 'ip4_addr1'

#define ip4_addr1_16(ipaddr) ((u16_t)ip4_addr1(ipaddr))

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:240:24: note: in expansion of macro 'ip4_addr1_16'

#define IP2STR(ipaddr) ip4_addr1_16(ipaddr), \

^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino:559:24: note: in expansion of macro 'IP2STR'

IP2STR ( remoteIP ),

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:221:43: error: invalid cast from type 'IPAddress' to type 'u8_t* {aka unsigned char*}'

#define ip4_addr2(ipaddr) (((u8_t*)(ipaddr))[1])

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:227:38: note: in expansion of macro 'ip4_addr2'

#define ip4_addr2_16(ipaddr) ((u16_t)ip4_addr2(ipaddr))

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:241:5: note: in expansion of macro 'ip4_addr2_16'

ip4_addr2_16(ipaddr), \

^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino:559:24: note: in expansion of macro 'IP2STR'

IP2STR ( remoteIP ),

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:222:43: error: invalid cast from type 'IPAddress' to type 'u8_t* {aka unsigned char*}'

#define ip4_addr3(ipaddr) (((u8_t*)(ipaddr))[2])

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:228:38: note: in expansion of macro 'ip4_addr3'

#define ip4_addr3_16(ipaddr) ((u16_t)ip4_addr3(ipaddr))

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:242:5: note: in expansion of macro 'ip4_addr3_16'

ip4_addr3_16(ipaddr), \

^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino:559:24: note: in expansion of macro 'IP2STR'

IP2STR ( remoteIP ),

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:223:43: error: invalid cast from type 'IPAddress' to type 'u8_t* {aka unsigned char*}'

#define ip4_addr4(ipaddr) (((u8_t*)(ipaddr))[3])

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:229:38: note: in expansion of macro 'ip4_addr4'

#define ip4_addr4_16(ipaddr) ((u16_t)ip4_addr4(ipaddr))

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:243:5: note: in expansion of macro 'ip4_addr4_16'

ip4_addr4_16(ipaddr)

^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino:559:24: note: in expansion of macro 'IP2STR'

IP2STR ( remoteIP ),

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:220:43: error: invalid cast from type 'IPAddress' to type 'u8_t* {aka unsigned char*}'

#define ip4_addr1(ipaddr) (((u8_t*)(ipaddr))[0])

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:226:38: note: in expansion of macro 'ip4_addr1'

#define ip4_addr1_16(ipaddr) ((u16_t)ip4_addr1(ipaddr))

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:240:24: note: in expansion of macro 'ip4_addr1_16'

#define IP2STR(ipaddr) ip4_addr1_16(ipaddr), \

^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino:564:25: note: in expansion of macro 'IP2STR'

IP2STR ( remoteIP ),

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:221:43: error: invalid cast from type 'IPAddress' to type 'u8_t* {aka unsigned char*}'

#define ip4_addr2(ipaddr) (((u8_t*)(ipaddr))[1])

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:227:38: note: in expansion of macro 'ip4_addr2'

#define ip4_addr2_16(ipaddr) ((u16_t)ip4_addr2(ipaddr))

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:241:5: note: in expansion of macro 'ip4_addr2_16'

ip4_addr2_16(ipaddr), \

^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino:564:25: note: in expansion of macro 'IP2STR'

IP2STR ( remoteIP ),

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:222:43: error: invalid cast from type 'IPAddress' to type 'u8_t* {aka unsigned char*}'

#define ip4_addr3(ipaddr) (((u8_t*)(ipaddr))[2])

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:228:38: note: in expansion of macro 'ip4_addr3'

#define ip4_addr3_16(ipaddr) ((u16_t)ip4_addr3(ipaddr))

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:242:5: note: in expansion of macro 'ip4_addr3_16'

ip4_addr3_16(ipaddr), \

^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino:564:25: note: in expansion of macro 'IP2STR'

IP2STR ( remoteIP ),

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:223:43: error: invalid cast from type 'IPAddress' to type 'u8_t* {aka unsigned char*}'

#define ip4_addr4(ipaddr) (((u8_t*)(ipaddr))[3])

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:229:38: note: in expansion of macro 'ip4_addr4'

#define ip4_addr4_16(ipaddr) ((u16_t)ip4_addr4(ipaddr))

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:243:5: note: in expansion of macro 'ip4_addr4_16'

ip4_addr4_16(ipaddr)

^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino:564:25: note: in expansion of macro 'IP2STR'

IP2STR ( remoteIP ),

^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino: In function 'String getSystemInformation()':

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:220:43: error: invalid cast from type 'IPAddress' to type 'u8_t* {aka unsigned char*}'

#define ip4_addr1(ipaddr) (((u8_t*)(ipaddr))[0])

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:226:38: note: in expansion of macro 'ip4_addr1'

#define ip4_addr1_16(ipaddr) ((u16_t)ip4_addr1(ipaddr))

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:240:24: note: in expansion of macro 'ip4_addr1_16'

#define IP2STR(ipaddr) ip4_addr1_16(ipaddr), \

^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino:760:28: note: in expansion of macro 'IP2STR'

sprintf ( apIP, IPSTR, IP2STR ( WiFi.softAPIP() ) );

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:221:43: error: invalid cast from type 'IPAddress' to type 'u8_t* {aka unsigned char*}'

#define ip4_addr2(ipaddr) (((u8_t*)(ipaddr))[1])

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:227:38: note: in expansion of macro 'ip4_addr2'

#define ip4_addr2_16(ipaddr) ((u16_t)ip4_addr2(ipaddr))

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:241:5: note: in expansion of macro 'ip4_addr2_16'

ip4_addr2_16(ipaddr), \

^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino:760:28: note: in expansion of macro 'IP2STR'

sprintf ( apIP, IPSTR, IP2STR ( WiFi.softAPIP() ) );

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:222:43: error: invalid cast from type 'IPAddress' to type 'u8_t* {aka unsigned char*}'

#define ip4_addr3(ipaddr) (((u8_t*)(ipaddr))[2])

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:228:38: note: in expansion of macro 'ip4_addr3'

#define ip4_addr3_16(ipaddr) ((u16_t)ip4_addr3(ipaddr))

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:242:5: note: in expansion of macro 'ip4_addr3_16'

ip4_addr3_16(ipaddr), \

^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino:760:28: note: in expansion of macro 'IP2STR'

sprintf ( apIP, IPSTR, IP2STR ( WiFi.softAPIP() ) );

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:223:43: error: invalid cast from type 'IPAddress' to type 'u8_t* {aka unsigned char*}'

#define ip4_addr4(ipaddr) (((u8_t*)(ipaddr))[3])

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:229:38: note: in expansion of macro 'ip4_addr4'

#define ip4_addr4_16(ipaddr) ((u16_t)ip4_addr4(ipaddr))

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:243:5: note: in expansion of macro 'ip4_addr4_16'

ip4_addr4_16(ipaddr)

^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino:760:28: note: in expansion of macro 'IP2STR'

sprintf ( apIP, IPSTR, IP2STR ( WiFi.softAPIP() ) );

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:220:43: error: invalid cast from type 'IPAddress' to type 'u8_t* {aka unsigned char*}'

#define ip4_addr1(ipaddr) (((u8_t*)(ipaddr))[0])

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:226:38: note: in expansion of macro 'ip4_addr1'

#define ip4_addr1_16(ipaddr) ((u16_t)ip4_addr1(ipaddr))

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:240:24: note: in expansion of macro 'ip4_addr1_16'

#define IP2STR(ipaddr) ip4_addr1_16(ipaddr), \

^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino:765:29: note: in expansion of macro 'IP2STR'

sprintf ( staIP, IPSTR, IP2STR ( WiFi.localIP() ) );

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:221:43: error: invalid cast from type 'IPAddress' to type 'u8_t* {aka unsigned char*}'

#define ip4_addr2(ipaddr) (((u8_t*)(ipaddr))[1])

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:227:38: note: in expansion of macro 'ip4_addr2'

#define ip4_addr2_16(ipaddr) ((u16_t)ip4_addr2(ipaddr))

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:241:5: note: in expansion of macro 'ip4_addr2_16'

ip4_addr2_16(ipaddr), \

^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino:765:29: note: in expansion of macro 'IP2STR'

sprintf ( staIP, IPSTR, IP2STR ( WiFi.localIP() ) );

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:222:43: error: invalid cast from type 'IPAddress' to type 'u8_t* {aka unsigned char*}'

#define ip4_addr3(ipaddr) (((u8_t*)(ipaddr))[2])

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:228:38: note: in expansion of macro 'ip4_addr3'

#define ip4_addr3_16(ipaddr) ((u16_t)ip4_addr3(ipaddr))

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:242:5: note: in expansion of macro 'ip4_addr3_16'

ip4_addr3_16(ipaddr), \

^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino:765:29: note: in expansion of macro 'IP2STR'

sprintf ( staIP, IPSTR, IP2STR ( WiFi.localIP() ) );

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:223:43: error: invalid cast from type 'IPAddress' to type 'u8_t* {aka unsigned char*}'

#define ip4_addr4(ipaddr) (((u8_t*)(ipaddr))[3])

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:229:38: note: in expansion of macro 'ip4_addr4'

#define ip4_addr4_16(ipaddr) ((u16_t)ip4_addr4(ipaddr))

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:243:5: note: in expansion of macro 'ip4_addr4_16'

ip4_addr4_16(ipaddr)

^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino:765:29: note: in expansion of macro 'IP2STR'

sprintf ( staIP, IPSTR, IP2STR ( WiFi.localIP() ) );

^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino: In function 'void execCommand(AsyncWebSocketClient*, char*)':

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:220:43: error: invalid cast from type 'IPAddress' to type 'u8_t* {aka unsigned char*}'

#define ip4_addr1(ipaddr) (((u8_t*)(ipaddr))[0])

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:226:38: note: in expansion of macro 'ip4_addr1'

#define ip4_addr1_16(ipaddr) ((u16_t)ip4_addr1(ipaddr))

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:240:24: note: in expansion of macro 'ip4_addr1_16'

#define IP2STR(ipaddr) ip4_addr1_16(ipaddr), \

^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino:1290:28: note: in expansion of macro 'IP2STR'

IP2STR ( ip )

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:221:43: error: invalid cast from type 'IPAddress' to type 'u8_t* {aka unsigned char*}'

#define ip4_addr2(ipaddr) (((u8_t*)(ipaddr))[1])

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:227:38: note: in expansion of macro 'ip4_addr2'

#define ip4_addr2_16(ipaddr) ((u16_t)ip4_addr2(ipaddr))

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:241:5: note: in expansion of macro 'ip4_addr2_16'

ip4_addr2_16(ipaddr), \

^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino:1290:28: note: in expansion of macro 'IP2STR'

IP2STR ( ip )

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:222:43: error: invalid cast from type 'IPAddress' to type 'u8_t* {aka unsigned char*}'

#define ip4_addr3(ipaddr) (((u8_t*)(ipaddr))[2])

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:228:38: note: in expansion of macro 'ip4_addr3'

#define ip4_addr3_16(ipaddr) ((u16_t)ip4_addr3(ipaddr))

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:242:5: note: in expansion of macro 'ip4_addr3_16'

ip4_addr3_16(ipaddr), \

^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino:1290:28: note: in expansion of macro 'IP2STR'

IP2STR ( ip )

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:223:43: error: invalid cast from type 'IPAddress' to type 'u8_t* {aka unsigned char*}'

#define ip4_addr4(ipaddr) (((u8_t*)(ipaddr))[3])

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:229:38: note: in expansion of macro 'ip4_addr4'

#define ip4_addr4_16(ipaddr) ((u16_t)ip4_addr4(ipaddr))

^

C:\Users\bma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/sdk/lwip/include/lwip/ip_addr.h:243:5: note: in expansion of macro 'ip4_addr4_16'

ip4_addr4_16(ipaddr)

^

\\hkr.se\home$\bma\Documents\Arduino\mobile-rr\mobile-rr.ino:1290:28: note: in expansion of macro 'IP2STR'

IP2STR ( ip )

^

exit status 1
Error compiling for board WeMos D1 R2 & mini.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

mattzzz
 
Posts: 1
Joined: Sat Jul 01, 2017 3:24 am

Please be positive and constructive with your questions and comments.