Hi,
I am working with the Arduino IDE on ESP8266 devices.
I am currently trying to figure a weird crash on my program as soon as include Thinger functionality.
It is probably not related, but I get following compiler warnings as soon as I include ThingerESP8266.h. (Current version 2.25.2) even before anything else is processed:
In file included from /Volumes/SD-Data/Documents/5_Tinker/5_Arduino/libraries/thinger.io/src/ThingerClient.cpp:2:
/Volumes/SD-Data/Documents/5_Tinker/5_Arduino/libraries/thinger.io/src/thinger/pson.h: In function 'void* operator new(size_t, void*, void*)':
/Volumes/SD-Data/Documents/5_Tinker/5_Arduino/libraries/thinger.io/src/thinger/pson.h:45:35: warning: unused parameter 'sz' [-Wunused-parameter]
45 | inline void * operator new(size_t sz, void * here, void* dummy) { return here; }
| ~~~~~~~^~
/Volumes/SD-Data/Documents/5_Tinker/5_Arduino/libraries/thinger.io/src/thinger/pson.h:45:58: warning: unused parameter 'dummy' [-Wunused-parameter]
45 | inline void * operator new(size_t sz, void * here, void* dummy) { return here; }
| ~~~~~~^~~~~
/Volumes/SD-Data/Documents/5_Tinker/5_Arduino/libraries/thinger.io/src/thinger/pson.h: In member function 'virtual bool protoson::pson_decoder::read(void*, size_t)':
/Volumes/SD-Data/Documents/5_Tinker/5_Arduino/libraries/thinger.io/src/thinger/pson.h:722:33: warning: unused parameter 'buffer' [-Wunused-parameter]
722 | virtual bool read(void* buffer, size_t size){
| ~~~~~~^~~~~~
In file included from /Volumes/SD-Data/Documents/5_Tinker/5_Arduino/libraries/thinger.io/src/ThingerClient.cpp:2:
/Volumes/SD-Data/Documents/5_Tinker/5_Arduino/libraries/thinger.io/src/thinger/pson.h: In member function 'virtual bool protoson::pson_encoder::write(const void*, size_t)':
/Volumes/SD-Data/Documents/5_Tinker/5_Arduino/libraries/thinger.io/src/thinger/pson.h:923:40: warning: unused parameter 'buffer' [-Wunused-parameter]
923 | virtual bool write(const void* buffer, size_t size){
| ~~~~~~~~~~~~^~~~~~
Maybe you could fix these warnings?
Regards
Laszlo