Arduino Library 2.21.0

Hi @alvarolb

I think I’ve identified the problem. But I think you already know.

I’m not a Computer Technician. I’m just a Maker.
I’m sorry if I say something stupid.

While reviewing the ThingerESP8266.h and ThingerWebConfig.h files, I identified that ThingerWebConfig was not suitable for the SSL/TSL changes made after version 2.16 of the Arduino-Thinger library.

NOTE: My timezone is -03:00.
NOTE2: I was able to connect to my private instance (which has the timezone -04:00 - Virginia, USA). But I couldn’t connect to the Public Thinger: iot.thinger.io

I made some impromptu changes to the ThingerWebConfig.h file and was able to connect. Basically:

  1. Added the <time.h> library;
  2. Added the setClock() function;
  3. Updated the code of the connect_socket() function
    **(See that I removed / commented the code from line 152 to 154)
  4. I added the setClock() function inside the connect_network() function (it’s not correct, but it worked.)
  5. I removed the “virtual” from the network_connected() and connect_network() functions

However, as I’m not an expert, I don’t know if it’s the correct way to update the ThingerWebConfig.h code.
I think this update is easy to do. Are there any plans to update the Arduino-Thinger library? We would love to use OTA functionality on our devices that use the ThingerWebConfig.h library.

Thanks for listening