cotestatnt / AsyncTelegram2

Powerful, flexible and secure Arduino Telegram BOT library. Hardware independent, it can be used with any MCU capable of handling an SSL connection.
MIT License
83 stars 25 forks source link

Could not compile EventScheduler.ino #60

Closed Dcmwrnd closed 2 years ago

Dcmwrnd commented 2 years ago

Hello Owner,

Your AsyncTelegram2 is fantastic. Great job.

Recently I tried to compile your Examples/AsyncTelegram2/advanced/EventScheduler.ino on:- Arduino IDE v1.8.19 ArduinoJson v6.19.2 ESP32 Board Manager v1.0.6

and giving me error below here.

exit status 1 cannot convert 'String' to 'const char' for argument '1' to 'int strcmp(const char, const char*)'

Error at line: 148 of (ev_scheduler.h).

cotestatnt commented 2 years ago

Hi @Dcmwrnd Thanks for your support.

This error is due to one the latest release where I've changed the type of some variables.

Change this kind of lines along the sketch

 else if (!strcmp (theMsg.callbackQueryData, WEEKEND)) {

in this way:

 else if (theMsg.callbackQueryData.equals(WEEKEND)) {

As soon as I can, I will update also the example online.

joroMaser commented 2 years ago

@cotestatnt maybe it good idea to add the compilation of all example in Action . So it will test each commit.

Dcmwrnd commented 2 years ago

Hi Owner, It is working perfectly now. Thanks for your super quick reply. I'm migrating my sketch from the old UniversalTelegramBot to AsyncTelegram2. As I can see the speed is much more faster than the old library and so does the API. Once again, thank you very much for the great great job.