I have successfully programmed Wemo D1 minis for several years and now I’m very interested in trying out the Blynk library. My problem is I can’t get the example program ESP8266_Standalone.ino to compile with the Blynk library.
- Installed the additional boards manager in Preferences
http://arduino.esp8266.com/stable/package_esp8266com_index.json - Installed latest Blynk library using the Library Manager
Blynk Version 0.6.1 - Uninstalled Library Manager version and reinstalled Manually as per
http://help.blynk.cc/en/articles/512105-how-to-install-blynk-library-for-arduino-ide - Arduino IDE 1.8.13
- Selected the board
WeMos D1 R1 (I’ve also tried all the other 3 Wemo options with same result) - Entered correct ssid, password and Auth code
/*************************************************************
Download latest Blynk library here:
https://github.com/blynkkk/blynk-library/releases/latest
Blynk is a platform with iOS and Android apps to control
Arduino, Raspberry Pi and the likes over the Internet.
You can easily build graphic interfaces for all your
projects by simply dragging and dropping widgets.
Downloads, docs, tutorials: http://www.blynk.cc
Sketch generator: http://examples.blynk.cc
Blynk community: http://community.blynk.cc
Follow us: http://www.fb.com/blynkapp
http://twitter.com/blynk_app
Blynk library is licensed under MIT license
This example code is in public domain.
*************************************************************
This example runs directly on ESP8266 chip.
Note: This requires ESP8266 support package:
https://github.com/esp8266/Arduino
Please be sure to select the right ESP8266 module
in the Tools -> Board menu!
Change WiFi ssid, pass, and Blynk auth token to run :)
Feel free to apply it to any other example. It's simple!
*************************************************************/
/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "##############################";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "####";
char pass[] = "#####";
void setup()
{
// Debug console
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
}
void loop()
{
Blynk.run();
}
Here is the result when I compile with Preferences->Compiler warnings = More
(Hopefully this isnt too much text and is helpful)
Arduino: 1.8.13 (Windows 10), Board: "WeMos D1 R1, 80 MHz, 4M (1M SPIFFS), v2 Prebuilt (MSS=536), Disabled, None, 921600"
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Carol\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Carol\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Carol\Documents\Arduino\libraries -fqbn=esp8266:esp8266:d1:CpuFrequency=80,FlashSize=4M1M,LwIPVariant=v2mss536,Debug=Disabled,DebugLevel=None____,UploadSpeed=921600 -vid-pid=1A86_7523 -ide-version=10813 -build-path C:\Users\Carol\AppData\Local\Temp\arduino_build_891141 -warnings=more -build-cache C:\Users\Carol\AppData\Local\Temp\arduino_cache_511408 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\Users\Carol\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2 -prefs=runtime.tools.xtensa-lx106-elf-gcc-1.20.0-26-gb404fb9-2.path=C:\Users\Carol\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2 -prefs=runtime.tools.mkspiffs.path=C:\Users\Carol\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\0.2.0 -prefs=runtime.tools.mkspiffs-0.2.0.path=C:\Users\Carol\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\0.2.0 -prefs=runtime.tools.esptool.path=C:\Users\Carol\AppData\Local\Arduino15\packages\esp8266\tools\esptool\0.4.12 -prefs=runtime.tools.esptool-0.4.12.path=C:\Users\Carol\AppData\Local\Arduino15\packages\esp8266\tools\esptool\0.4.12 -verbose C:\Users\Carol\Documents\Arduino\ESP8266_Standalone\ESP8266_Standalone.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Carol\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Carol\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Carol\Documents\Arduino\libraries -fqbn=esp8266:esp8266:d1:CpuFrequency=80,FlashSize=4M1M,LwIPVariant=v2mss536,Debug=Disabled,DebugLevel=None____,UploadSpeed=921600 -vid-pid=1A86_7523 -ide-version=10813 -build-path C:\Users\Carol\AppData\Local\Temp\arduino_build_891141 -warnings=more -build-cache C:\Users\Carol\AppData\Local\Temp\arduino_cache_511408 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\Users\Carol\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2 -prefs=runtime.tools.xtensa-lx106-elf-gcc-1.20.0-26-gb404fb9-2.path=C:\Users\Carol\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2 -prefs=runtime.tools.mkspiffs.path=C:\Users\Carol\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\0.2.0 -prefs=runtime.tools.mkspiffs-0.2.0.path=C:\Users\Carol\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\0.2.0 -prefs=runtime.tools.esptool.path=C:\Users\Carol\AppData\Local\Arduino15\packages\esp8266\tools\esptool\0.4.12 -prefs=runtime.tools.esptool-0.4.12.path=C:\Users\Carol\AppData\Local\Arduino15\packages\esp8266\tools\esptool\0.4.12 -verbose C:\Users\Carol\Documents\Arduino\ESP8266_Standalone\ESP8266_Standalone.ino
Using board 'd1' from platform in folder: C:\Users\Carol\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0
Using core 'esp8266' from platform in folder: C:\Users\Carol\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0
Detecting libraries used...
"C:\\Users\\Carol\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\\Users\\Carol\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.0/tools/sdk/include" "-IC:\\Users\\Carol\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.0/tools/sdk/lwip2/include" "-IC:\\Users\\Carol\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.0/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\Carol\\AppData\\Local\\Temp\\arduino_build_891141/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DARDUINO=10813 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_WEMOS_D1MINI\"" -DESP8266 "-IC:\\Users\\Carol\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.0\\cores\\esp8266" "-IC:\\Users\\Carol\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.0\\variants\\d1" "C:\\Users\\Carol\\AppData\\Local\\Temp\\arduino_build_891141\\sketch\\ESP8266_Standalone.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE
Alternatives for ESP8266WiFi.h: [ESP8266WiFi@1.0]
ResolveLibrary(ESP8266WiFi.h)
-> candidates: [ESP8266WiFi@1.0]
"C:\\Users\\Carol\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\\Users\\Carol\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.0/tools/sdk/include" "-IC:\\Users\\Carol\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.0/tools/sdk/lwip2/include" "-IC:\\Users\\Carol\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.0/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\Carol\\AppData\\Local\\Temp\\arduino_build_891141/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DARDUINO=10813 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_WEMOS_D1MINI\"" -DESP8266 "-IC:\\Users\\Carol\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.0\\cores\\esp8266" "-IC:\\Users\\Carol\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.0\\variants\\d1" "-IC:\\Users\\Carol\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.0\\libraries\\ESP8266WiFi\\src" "C:\\Users\\Carol\\AppData\\Local\\Temp\\arduino_build_891141\\sketch\\ESP8266_Standalone.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE
Alternatives for BlynkSimpleEsp8266.h: [arduino_615261@0.6.0 Blynk@0.6.1]
ResolveLibrary(BlynkSimpleEsp8266.h)
-> candidates: [arduino_615261@0.6.0 Blynk@0.6.1]
"C:\\Users\\Carol\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\\Users\\Carol\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.0/tools/sdk/include" "-IC:\\Users\\Carol\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.0/tools/sdk/lwip2/include" "-IC:\\Users\\Carol\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.0/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\Carol\\AppData\\Local\\Temp\\arduino_build_891141/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DARDUINO=10813 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_WEMOS_D1MINI\"" -DESP8266 "-IC:\\Users\\Carol\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.0\\cores\\esp8266" "-IC:\\Users\\Carol\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.0\\variants\\d1" "-IC:\\Users\\Carol\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.4.0\\libraries\\ESP8266WiFi\\src" "-IC:\\Users\\Carol\\Documents\\Arduino\\libraries\\Blynk\\src" "C:\\Users\\Carol\\AppData\\Local\\Temp\\arduino_build_891141\\sketch\\ESP8266_Standalone.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE
Alternatives for version.h: []
ResolveLibrary(version.h)
-> candidates: []om C:\Users\Carol\Documents\Arduino\ESP8266_Standalone\ESP8266_Standalone.ino:37:0:
C:\Users\Carol\Documents\Arduino\libraries\Blynk\src/BlynkSimpleEsp8266.h:18:21: fatal error: version.h: No such file or directory
Multiple libraries were found for "BlynkSimpleEsp8266.h"
#include <version.h>
Used: C:\Users\Carol\Documents\Arduino\libraries\Blynk
^
Not used: C:\Users\Carol\Documents\Arduino\libraries\arduino_615261
compilation terminated.
Using library ESP8266WiFi at version 1.0 in folder: C:\Users\Carol\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0\libraries\ESP8266WiFi
Using library Blynk at version 0.6.1 in folder: C:\Users\Carol\Documents\Arduino\libraries\Blynk
exit status 1
Error compiling for board WeMos D1 R1.
*****************************************************************
I find the line “C:\Users\Carol\Documents\Arduino\libraries\Blynk\src/BlynkSimpleEsp8266.h:18:21: fatal error: version.h: No such file or directory” suspicious with a forward slash.
Thanks for any help.