skorokithakis / A6lib

An ESP8266/Arduino library for communicating with the A6 GSM module. ⛺
MIT License
127 stars 49 forks source link

not compatible with nodeMCU #27

Closed Shiro7 closed 5 years ago

Shiro7 commented 6 years ago

when I use ir with nodeMCU it give me it is not compatible

skorokithakis commented 6 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?

Shiro7 commented 6 years ago

exit status 1 Error compiling for board NodeMCU 1.0 (ESP-12E Module).

skorokithakis commented 6 years ago

This doesn't give me enough information. Please paste the commands you're running and give some more detail on what you're doing.

Shiro7 commented 6 years ago

I am using example sms when I compile it give me this error

Shiro7 commented 6 years ago

screenshot from 2018-03-09 14-30-14

skorokithakis commented 6 years ago

Can you paste the entire error log?

Shiro7 commented 6 years ago

from where can I get it for you

skorokithakis commented 6 years ago

From the window in the screenshot.

Shiro7 commented 6 years ago

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.

Shiro7 commented 6 years ago

this is all the error

skorokithakis commented 6 years ago

It looks like it has a problem with the level line, I'll have a look and see, thank you.

Shiro7 commented 6 years ago

okay thank you for the fast response

1technophile commented 6 years ago

@Shiro7 could you test with last version of code

skorokithakis commented 5 years ago

Closing due to inactivity.