Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compatibility with ESP8266 / WeMos D1 Mini #43

Open
anselmpaul opened this issue Jun 2, 2018 · 1 comment
Open

compatibility with ESP8266 / WeMos D1 Mini #43

anselmpaul opened this issue Jun 2, 2018 · 1 comment

Comments

@anselmpaul
Copy link

Hey all,

is this library compatible with the D1? My goal is to use it as interface between an Arduino Uno and the D1 over Serial. However I can't seem to compile any of the example files for the D1, which work just fine on the Uno.

Can you tell me if this an problem on my side or within the library?

Thanks a bunch!

Build Log:


Arduino: 1.8.5 (Linux), Board: "WeMos D1 R2 & mini, 80 MHz, Flash, 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

/home/anselm/Downloads/arduino-1.8.5/arduino-builder -dump-prefs -logger=machine -hardware /home/anselm/Downloads/arduino-1.8.5/hardware -hardware /home/anselm/Arduino/hardware -tools /home/anselm/Downloads/arduino-1.8.5/tools-builder -tools /home/anselm/Downloads/arduino-1.8.5/hardware/tools/avr -built-in-libraries /home/anselm/Downloads/arduino-1.8.5/libraries -libraries /home/anselm/Arduino/libraries -fqbn=esp8266com:esp8266:d1_mini:CpuFrequency=80,VTable=flash,FlashSize=4M1M,LwIPVariant=v2mss536,Debug=Disabled,DebugLevel=None____,FlashErase=none,UploadSpeed=115200 -ide-version=10805 -build-path /tmp/arduino_build_792499 -warnings=none -build-cache /tmp/arduino_cache_76518 -prefs=build.warn_data_percentage=75 -verbose /home/anselm/Arduino/libraries/CmdMessenger/examples/Receive/Receive.ino
/home/anselm/Downloads/arduino-1.8.5/arduino-builder -compile -logger=machine -hardware /home/anselm/Downloads/arduino-1.8.5/hardware -hardware /home/anselm/Arduino/hardware -tools /home/anselm/Downloads/arduino-1.8.5/tools-builder -tools /home/anselm/Downloads/arduino-1.8.5/hardware/tools/avr -built-in-libraries /home/anselm/Downloads/arduino-1.8.5/libraries -libraries /home/anselm/Arduino/libraries -fqbn=esp8266com:esp8266:d1_mini:CpuFrequency=80,VTable=flash,FlashSize=4M1M,LwIPVariant=v2mss536,Debug=Disabled,DebugLevel=None____,FlashErase=none,UploadSpeed=115200 -ide-version=10805 -build-path /tmp/arduino_build_792499 -warnings=none -build-cache /tmp/arduino_cache_76518 -prefs=build.warn_data_percentage=75 -verbose /home/anselm/Arduino/libraries/CmdMessenger/examples/Receive/Receive.ino
Using board 'd1_mini' from platform in folder: /home/anselm/Arduino/hardware/esp8266com/esp8266
Using core 'esp8266' from platform in folder: /home/anselm/Arduino/hardware/esp8266com/esp8266
Detecting libraries used...
"/home/anselm/Arduino/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-I/home/anselm/Arduino/hardware/esp8266com/esp8266/tools/sdk/include" "-I/home/anselm/Arduino/hardware/esp8266com/esp8266/tools/sdk/lwip2/include" "-I/home/anselm/Arduino/hardware/esp8266com/esp8266/tools/sdk/libc/xtensa-lx106-elf/include" "-I/tmp/arduino_build_792499/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=10805 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_WEMOS_D1MINI"   -DESP8266 "-I/home/anselm/Arduino/hardware/esp8266com/esp8266/cores/esp8266" "-I/home/anselm/Arduino/hardware/esp8266com/esp8266/variants/d1_mini" "/tmp/arduino_build_792499/sketch/Receive.ino.cpp" -o "/dev/null"
"/home/anselm/Arduino/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-I/home/anselm/Arduino/hardware/esp8266com/esp8266/tools/sdk/include" "-I/home/anselm/Arduino/hardware/esp8266com/esp8266/tools/sdk/lwip2/include" "-I/home/anselm/Arduino/hardware/esp8266com/esp8266/tools/sdk/libc/xtensa-lx106-elf/include" "-I/tmp/arduino_build_792499/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=10805 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_WEMOS_D1MINI"   -DESP8266 "-I/home/anselm/Arduino/hardware/esp8266com/esp8266/cores/esp8266" "-I/home/anselm/Arduino/hardware/esp8266com/esp8266/variants/d1_mini" "-I/home/anselm/Arduino/libraries/CmdMessenger" "/tmp/arduino_build_792499/sketch/Receive.ino.cpp" -o "/dev/null"
Using cached library dependencies for file: /home/anselm/Arduino/libraries/CmdMessenger/CmdMessenger.cpp
Using cached library dependencies for file: /home/anselm/Arduino/libraries/CmdMessenger/utility/DoEvery.cpp
"/home/anselm/Arduino/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-I/home/anselm/Arduino/hardware/esp8266com/esp8266/tools/sdk/include" "-I/home/anselm/Arduino/hardware/esp8266com/esp8266/tools/sdk/lwip2/include" "-I/home/anselm/Arduino/hardware/esp8266com/esp8266/tools/sdk/libc/xtensa-lx106-elf/include" "-I/tmp/arduino_build_792499/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=10805 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_WEMOS_D1MINI"   -DESP8266 "-I/home/anselm/Arduino/hardware/esp8266com/esp8266/cores/esp8266" "-I/home/anselm/Arduino/hardware/esp8266com/esp8266/variants/d1_mini" "-I/home/anselm/Arduino/libraries/CmdMessenger" "-I/home/anselm/Arduino/libraries/CmdMessenger/utility" "/home/anselm/Arduino/libraries/CmdMessenger/utility/HeaterSim.cpp" -o "/dev/null"
Generating function prototypes...
"/home/anselm/Arduino/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-I/home/anselm/Arduino/hardware/esp8266com/esp8266/tools/sdk/include" "-I/home/anselm/Arduino/hardware/esp8266com/esp8266/tools/sdk/lwip2/include" "-I/home/anselm/Arduino/hardware/esp8266com/esp8266/tools/sdk/libc/xtensa-lx106-elf/include" "-I/tmp/arduino_build_792499/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=10805 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_WEMOS_D1MINI"   -DESP8266 "-I/home/anselm/Arduino/hardware/esp8266com/esp8266/cores/esp8266" "-I/home/anselm/Arduino/hardware/esp8266com/esp8266/variants/d1_mini" "-I/home/anselm/Arduino/libraries/CmdMessenger" "/tmp/arduino_build_792499/sketch/Receive.ino.cpp" -o "/tmp/arduino_build_792499/preproc/ctags_target_for_gcc_minus_e.cpp"
"/home/anselm/Downloads/arduino-1.8.5/tools-builder/ctags/5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "/tmp/arduino_build_792499/preproc/ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...


"/home/anselm/Arduino/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-I/home/anselm/Arduino/hardware/esp8266com/esp8266/tools/sdk/include" "-I/home/anselm/Arduino/hardware/esp8266com/esp8266/tools/sdk/lwip2/include" "-I/home/anselm/Arduino/hardware/esp8266com/esp8266/tools/sdk/libc/xtensa-lx106-elf/include" "-I/tmp/arduino_build_792499/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536   -DARDUINO=10805 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_WEMOS_D1MINI"   -DESP8266 "-I/home/anselm/Arduino/hardware/esp8266com/esp8266/cores/esp8266" "-I/home/anselm/Arduino/hardware/esp8266com/esp8266/variants/d1_mini" "-I/home/anselm/Arduino/libraries/CmdMessenger" "/tmp/arduino_build_792499/sketch/Receive.ino.cpp" -o "/tmp/arduino_build_792499/sketch/Receive.ino.cpp.o"
Compiling libraries...
Compiling library "CmdMessenger"


Using previously compiled file: /tmp/arduino_build_792499/libraries/CmdMessenger/CmdMessenger.cpp.o
Using previously compiled file: /tmp/arduino_build_792499/libraries/CmdMessenger/utility/DoEvery.cpp.o
"/home/anselm/Arduino/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-I/home/anselm/Arduino/hardware/esp8266com/esp8266/tools/sdk/include" "-I/home/anselm/Arduino/hardware/esp8266com/esp8266/tools/sdk/lwip2/include" "-I/home/anselm/Arduino/hardware/esp8266com/esp8266/tools/sdk/libc/xtensa-lx106-elf/include" "-I/tmp/arduino_build_792499/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536   -DARDUINO=10805 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_WEMOS_D1MINI"   -DESP8266 "-I/home/anselm/Arduino/hardware/esp8266com/esp8266/cores/esp8266" "-I/home/anselm/Arduino/hardware/esp8266com/esp8266/variants/d1_mini" "-I/home/anselm/Arduino/libraries/CmdMessenger" "-I/home/anselm/Arduino/libraries/CmdMessenger/utility" "/home/anselm/Arduino/libraries/CmdMessenger/utility/HeaterSim.cpp" -o "/tmp/arduino_build_792499/libraries/CmdMessenger/utility/HeaterSim.cpp.o"


/home/anselm/Arduino/libraries/CmdMessenger/utility/HeaterSim.cpp: In member function 'void HeaterSim::CalcTemperature()':
/home/anselm/Arduino/libraries/CmdMessenger/utility/HeaterSim.cpp:73:72: error: no matching function for call to 'max(long unsigned int, int)'
  if (currentTime >= _lastTime) _deltams = max(currentTime - _lastTime,1);
                                                                        ^
/home/anselm/Arduino/libraries/CmdMessenger/utility/HeaterSim.cpp:73:72: note: candidates are:
In file included from /home/anselm/Arduino/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/xtensa-lx106-elf/include/c++/4.8.2/algorithm:62:0,
                 from /home/anselm/Arduino/hardware/esp8266com/esp8266/cores/esp8266/Arduino.h:254,
                 from /home/anselm/Arduino/libraries/CmdMessenger/utility/HeaterSim.h:25,
                 from /home/anselm/Arduino/libraries/CmdMessenger/utility/HeaterSim.cpp:23:
/home/anselm/Arduino/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_algo.h:4236:5: note: template<class _Tp, class _Compare> _Tp std::max(std::initializer_list<_Tp>, _Compare)
     max(initializer_list<_Tp> __l, _Compare __comp)
     ^
/home/anselm/Arduino/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_algo.h:4236:5: note:   template argument deduction/substitution failed:
/home/anselm/Arduino/libraries/CmdMessenger/utility/HeaterSim.cpp:73:72: note:   mismatched types 'std::initializer_list<_Tp>' and 'long unsigned int'
  if (currentTime >= _lastTime) _deltams = max(currentTime - _lastTime,1);
                                                                        ^
In file included from /home/anselm/Arduino/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/xtensa-lx106-elf/include/c++/4.8.2/algorithm:62:0,
                 from /home/anselm/Arduino/hardware/esp8266com/esp8266/cores/esp8266/Arduino.h:254,
                 from /home/anselm/Arduino/libraries/CmdMessenger/utility/HeaterSim.h:25,
                 from /home/anselm/Arduino/libraries/CmdMessenger/utility/HeaterSim.cpp:23:
/home/anselm/Arduino/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_algo.h:4231:5: note: template<class _Tp> _Tp std::max(std::initializer_list<_Tp>)
     max(initializer_list<_Tp> __l)
     ^
/home/anselm/Arduino/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_algo.h:4231:5: note:   template argument deduction/substitution failed:
/home/anselm/Arduino/libraries/CmdMessenger/utility/HeaterSim.cpp:73:72: note:   mismatched types 'std::initializer_list<_Tp>' and 'long unsigned int'
  if (currentTime >= _lastTime) _deltams = max(currentTime - _lastTime,1);
                                                                        ^
In file included from /home/anselm/Arduino/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/xtensa-lx106-elf/include/c++/4.8.2/algorithm:61:0,
                 from /home/anselm/Arduino/hardware/esp8266com/esp8266/cores/esp8266/Arduino.h:254,
                 from /home/anselm/Arduino/libraries/CmdMessenger/utility/HeaterSim.h:25,
                 from /home/anselm/Arduino/libraries/CmdMessenger/utility/HeaterSim.cpp:23:
/home/anselm/Arduino/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_algobase.h:260:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
     ^
/home/anselm/Arduino/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_algobase.h:260:5: note:   template argument deduction/substitution failed:
/home/anselm/Arduino/libraries/CmdMessenger/utility/HeaterSim.cpp:73:72: note:   deduced conflicting types for parameter 'const _Tp' ('long unsigned int' and 'int')
  if (currentTime >= _lastTime) _deltams = max(currentTime - _lastTime,1);
                                                                        ^
In file included from /home/anselm/Arduino/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/xtensa-lx106-elf/include/c++/4.8.2/algorithm:61:0,
                 from /home/anselm/Arduino/hardware/esp8266com/esp8266/cores/esp8266/Arduino.h:254,
                 from /home/anselm/Arduino/libraries/CmdMessenger/utility/HeaterSim.h:25,
                 from /home/anselm/Arduino/libraries/CmdMessenger/utility/HeaterSim.cpp:23:
/home/anselm/Arduino/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_algobase.h:216:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
     max(const _Tp& __a, const _Tp& __b)
     ^
/home/anselm/Arduino/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_algobase.h:216:5: note:   template argument deduction/substitution failed:
/home/anselm/Arduino/libraries/CmdMessenger/utility/HeaterSim.cpp:73:72: note:   deduced conflicting types for parameter 'const _Tp' ('long unsigned int' and 'int')
  if (currentTime >= _lastTime) _deltams = max(currentTime - _lastTime,1);
                                                                        ^
Using library CmdMessenger at version 4.0.0 in folder: /home/anselm/Arduino/libraries/CmdMessenger 
exit status 1
Error compiling for board WeMos D1 R2 & mini.
@anselmpaul
Copy link
Author

#42 fixes this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant