Closed Shiro7 closed 5 years ago
That's pretty unlikely, that's what I'm using it with too. Can you paste the commands you're running and the responses?
exit status 1 Error compiling for board NodeMCU 1.0 (ESP-12E Module).
This doesn't give me enough information. Please paste the commands you're running and give some more detail on what you're doing.
I am using example sms when I compile it give me this error
Can you paste the entire error log?
from where can I get it for you
From the window in the screenshot.
Arduino: 1.8.3 (Linux), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, 4M (1M SPIFFS), v2 Prebuilt (MSS=536), Disabled, None, 115200"
/root/Arduino/libraries/A6lib-master/A6lib.cpp: In member function 'void A6lib::setVol(byte)':
/root/Arduino/libraries/A6lib-master/A6lib.cpp:335:29: error: no matching function for call to 'max(byte&, int)'
level = min(max(level, 5), 8);
^
/root/Arduino/libraries/A6lib-master/A6lib.cpp:335:29: note: candidates are:
In file included from /root/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/xtensa-lx106-elf/include/c++/4.8.2/algorithm:62:0,
from /root/.arduino15/packages/esp8266/hardware/esp8266/2.4.0/cores/esp8266/Arduino.h:240,
from /root/Arduino/libraries/A6lib-master/A6lib.cpp:1:
/root/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/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)
^
/root/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_algo.h:4236:5: note: template argument deduction/substitution failed:
/root/Arduino/libraries/A6lib-master/A6lib.cpp:335:29: note: mismatched types 'std::initializer_list<_Tp>' and 'unsigned char'
level = min(max(level, 5), 8);
^
In file included from /root/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/xtensa-lx106-elf/include/c++/4.8.2/algorithm:62:0,
from /root/.arduino15/packages/esp8266/hardware/esp8266/2.4.0/cores/esp8266/Arduino.h:240,
from /root/Arduino/libraries/A6lib-master/A6lib.cpp:1:
/root/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_algo.h:4231:5: note: template
This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
this is all the error
It looks like it has a problem with the level line, I'll have a look and see, thank you.
okay thank you for the fast response
@Shiro7 could you test with last version of code
Closing due to inactivity.
when I use ir with nodeMCU it give me it is not compatible