Hola! Alguien sabe porque no compila el ejemplo “ThingerTinyGSM” cuando se usa con Arduino UNO?
He visto que otros usuarios tienen el mismo problema… Gracias
PD: Tengo las ultimas versiones de todo. Thinger / IDE / TinyGSM
Hola! Alguien sabe porque no compila el ejemplo “ThingerTinyGSM” cuando se usa con Arduino UNO?
He visto que otros usuarios tienen el mismo problema… Gracias
PD: Tengo las ultimas versiones de todo. Thinger / IDE / TinyGSM
Con la version 2.16 de la libreria de thinger, compila sin problemas.
Saludos.
Asi me aparece en el serial a la salida… tengo instalada la versión 2.25.2
In file included from D:\Usuario\Documents\Arduino\libraries\thinger.io\src/thinger/thinger.h:29:0,
from D:\Usuario\Documents\Arduino\libraries\thinger.io\src/ThingerClient.h:29,
from D:\Usuario\Documents\Arduino\libraries\thinger.io\src/ThingerTinyGSM.h:28,
from D:\Usuario\Documents\Arduino\libraries\thinger.io\examples\Arduino\ArduinoTinyGSM\ArduinoTinyGSM.ino:12:
D:\Usuario\Documents\Arduino\libraries\thinger.io\src/thinger/thinger_resource.hpp:106:10: error: 'function' in namespace 'std' does not name a template type
std::function<void()> then_;
^~~~~~~~
In file included from D:\Usuario\Documents\Arduino\libraries\thinger.io\src/ThingerClient.h:29:0,
from D:\Usuario\Documents\Arduino\libraries\thinger.io\src/ThingerTinyGSM.h:28,
from D:\Usuario\Documents\Arduino\libraries\thinger.io\examples\Arduino\ArduinoTinyGSM\ArduinoTinyGSM.ino:12:
D:\Usuario\Documents\Arduino\libraries\thinger.io\src/thinger/thinger.h: In member function 'void thinger::thinger::handle_request_received(thinger::thinger_message&)':
D:\Usuario\Documents\Arduino\libraries\thinger.io\src/thinger/thinger.h:611:57: error: 'class thinger::thinger_resource' has no member named 'then'
thing_resource->then();
^~~~
D:\Usuario\Documents\Arduino\libraries\thinger.io\src/thinger/thinger.h:624:37: error: 'class thinger::thinger_resource' has no member named 'then'
thing_resource->then();
^~~~
In file included from D:\Usuario\Documents\Arduino\libraries\thinger.io\src/ThingerTinyGSM.h:28:0,
from D:\Usuario\Documents\Arduino\libraries\thinger.io\examples\Arduino\ArduinoTinyGSM\ArduinoTinyGSM.ino:12:
D:\Usuario\Documents\Arduino\libraries\thinger.io\src/ThingerClient.h: At global scope:
D:\Usuario\Documents\Arduino\libraries\thinger.io\src/ThingerClient.h:535:34: error: 'std::function' has not been declared
void set_state_listener(std::function<void(THINGER_STATE)> state_listener){
^~~~~~~~
D:\Usuario\Documents\Arduino\libraries\thinger.io\src/ThingerClient.h:535:42: error: expected ',' or '...' before '<' token
void set_state_listener(std::function<void(THINGER_STATE)> state_listener){
^
D:\Usuario\Documents\Arduino\libraries\thinger.io\src/ThingerClient.h:551:10: error: 'function' in namespace 'std' does not name a template type
std::function<void(THINGER_STATE)> state_listener_;
^~~~~~~~
D:\Usuario\Documents\Arduino\libraries\thinger.io\src/ThingerClient.h: In member function 'virtual void ThingerClient::run_reboot()':
D:\Usuario\Documents\Arduino\libraries\thinger.io\src/ThingerClient.h:361:20: error: 'WDTO_15MS' was not declared in this scope
wdt_enable(WDTO_15MS);
^~~~~~~~~
D:\Usuario\Documents\Arduino\libraries\thinger.io\src/ThingerClient.h:361:9: error: 'wdt_enable' was not declared in this scope
wdt_enable(WDTO_15MS);
^~~~~~~~~~
D:\Usuario\Documents\Arduino\libraries\thinger.io\src/ThingerClient.h:361:9: note: suggested alternative: 'mutable'
wdt_enable(WDTO_15MS);
^~~~~~~~~~
mutable
D:\Usuario\Documents\Arduino\libraries\thinger.io\src/ThingerClient.h: In member function 'virtual void ThingerClient::thinger_state_listener(ThingerClient::THINGER_STATE)':
D:\Usuario\Documents\Arduino\libraries\thinger.io\src/ThingerClient.h:425:12: error: 'state_listener_' was not declared in this scope
if(state_listener_) state_listener_(state);
^~~~~~~~~~~~~~~
D:\Usuario\Documents\Arduino\libraries\thinger.io\src/ThingerClient.h:425:12: note: suggested alternative: 'set_state_listener'
if(state_listener_) state_listener_(state);
^~~~~~~~~~~~~~~
set_state_listener
D:\Usuario\Documents\Arduino\libraries\thinger.io\src/ThingerClient.h: In member function 'void ThingerClient::set_state_listener(int)':
D:\Usuario\Documents\Arduino\libraries\thinger.io\src/ThingerClient.h:536:9: error: 'state_listener_' was not declared in this scope
state_listener_ = state_listener;
^~~~~~~~~~~~~~~
D:\Usuario\Documents\Arduino\libraries\thinger.io\src/ThingerClient.h:536:9: note: suggested alternative: 'set_state_listener'
state_listener_ = state_listener;
^~~~~~~~~~~~~~~
set_state_listener
D:\Usuario\Documents\Arduino\libraries\thinger.io\src/ThingerClient.h:536:27: error: 'state_listener' was not declared in this scope
state_listener_ = state_listener;
^~~~~~~~~~~~~~
D:\Usuario\Documents\Arduino\libraries\thinger.io\src/ThingerClient.h:536:27: note: suggested alternative: 'set_state_listener'
state_listener_ = state_listener;
^~~~~~~~~~~~~~
set_state_listener
In file included from D:\Usuario\Documents\Arduino\libraries\thinger.io\examples\Arduino\ArduinoTinyGSM\ArduinoTinyGSM.ino:12:0:
D:\Usuario\Documents\Arduino\libraries\thinger.io\src/ThingerTinyGSM.h: At global scope:
D:\Usuario\Documents\Arduino\libraries\thinger.io\src/ThingerTinyGSM.h:123:30: error: 'std::function' has not been declared
void setModuleReset(std::function<void()> module_reset){
^~~~~~~~
D:\Usuario\Documents\Arduino\libraries\thinger.io\src/ThingerTinyGSM.h:123:38: error: expected ',' or '...' before '<' token
void setModuleReset(std::function<void()> module_reset){
^
D:\Usuario\Documents\Arduino\libraries\thinger.io\src/ThingerTinyGSM.h:138:10: error: 'function' in namespace 'std' does not name a template type
std::function<void()> module_reset_;
^~~~~~~~
D:\Usuario\Documents\Arduino\libraries\thinger.io\src/ThingerTinyGSM.h: In member function 'virtual bool ThingerTinyGSM::connect_network()':
D:\Usuario\Documents\Arduino\libraries\thinger.io\src/ThingerTinyGSM.h:59:12: error: 'module_reset_' was not declared in this scope
if(module_reset_) module_reset_();
^~~~~~~~~~~~~
D:\Usuario\Documents\Arduino\libraries\thinger.io\src/ThingerTinyGSM.h:59:12: note: suggested alternative: 'setModuleReset'
if(module_reset_) module_reset_();
^~~~~~~~~~~~~
setModuleReset
D:\Usuario\Documents\Arduino\libraries\thinger.io\src/ThingerTinyGSM.h: In member function 'void ThingerTinyGSM::setModuleReset(int)':
D:\Usuario\Documents\Arduino\libraries\thinger.io\src/ThingerTinyGSM.h:124:9: error: 'module_reset_' was not declared in this scope
module_reset_ = module_reset;
^~~~~~~~~~~~~
D:\Usuario\Documents\Arduino\libraries\thinger.io\src/ThingerTinyGSM.h:124:9: note: suggested alternative: 'setModuleReset'
module_reset_ = module_reset;
^~~~~~~~~~~~~
setModuleReset
D:\Usuario\Documents\Arduino\libraries\thinger.io\src/ThingerTinyGSM.h:124:25: error: 'module_reset' was not declared in this scope
module_reset_ = module_reset;
^~~~~~~~~~~~
D:\Usuario\Documents\Arduino\libraries\thinger.io\src/ThingerTinyGSM.h:124:25: note: suggested alternative: 'setModuleReset'
module_reset_ = module_reset;
^~~~~~~~~~~~
setModuleReset
exit status 1
Error compilando para la tarjeta Arduino Uno.
Esto no sucede con la versión 2.16.
Saludos,