not compatible with nodeMCU
Closed this issue · 14 comments
when I use ir with nodeMCU it give me it is not compatible
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 _Tp std::max(std::initializer_list<_Tp>)
max(initializer_list<_Tp> __l)
^
/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 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:61: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_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)
^
/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_algobase.h:260:5: note: template argument deduction/substitution failed:
/root/Arduino/libraries/A6lib-master/A6lib.cpp:335:29: note: deduced conflicting types for parameter 'const _Tp' ('unsigned char' and 'int')
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:61: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_algobase.h:216:5: note: template const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^
/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_algobase.h:216:5: note: template argument deduction/substitution failed:
/root/Arduino/libraries/A6lib-master/A6lib.cpp:335:29: note: deduced conflicting types for parameter 'const _Tp' ('unsigned char' and 'int')
level = min(max(level, 5), 8);
^
/root/Arduino/libraries/A6lib-master/A6lib.cpp: In member function 'void A6lib::enableSpeaker(byte)':
/root/Arduino/libraries/A6lib-master/A6lib.cpp:347:31: error: no matching function for call to 'max(byte&, int)'
enable = min(max(enable, 0), 1);
^
/root/Arduino/libraries/A6lib-master/A6lib.cpp:347:31: 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:347:31: note: mismatched types 'std::initializer_list<_Tp>' and 'unsigned char'
enable = min(max(enable, 0), 1);
^
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 _Tp std::max(std::initializer_list<_Tp>)
max(initializer_list<_Tp> __l)
^
/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 argument deduction/substitution failed:
/root/Arduino/libraries/A6lib-master/A6lib.cpp:347:31: note: mismatched types 'std::initializer_list<_Tp>' and 'unsigned char'
enable = min(max(enable, 0), 1);
^
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:61: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_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)
^
/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_algobase.h:260:5: note: template argument deduction/substitution failed:
/root/Arduino/libraries/A6lib-master/A6lib.cpp:347:31: note: deduced conflicting types for parameter 'const _Tp' ('unsigned char' and 'int')
enable = min(max(enable, 0), 1);
^
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:61: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_algobase.h:216:5: note: template const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^
/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_algobase.h:216:5: note: template argument deduction/substitution failed:
/root/Arduino/libraries/A6lib-master/A6lib.cpp:347:31: note: deduced conflicting types for parameter 'const _Tp' ('unsigned char' and 'int')
enable = min(max(enable, 0), 1);
^
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).
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.