Comments on: Controlling LED using ESP8266 and Telegram Bot – IoT Project https://electrosome.com/led-control-esp8266-telegram-bot/ You Inspire.....We Create..... Wed, 18 Dec 2019 00:28:05 +0000 hourly 1 https://wordpress.org/?v=6.1.1 By: ManuBeze https://electrosome.com/led-control-esp8266-telegram-bot/#comments/8764 Wed, 18 Dec 2019 00:28:05 +0000 https://electrosome.com/?p=15735#comment-8764 Hi, first of all thanks for sharing this awesome tutorial!!! however I have a problem i cant find to solve……..

I’ve copied your code and included the libraries however get the error message:

Arduino: 1.8.10 (Mac OS X), Board: “Generic ESP8266 Module, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), dtr (aka nodemcu), 26 MHz, 40MHz, DOUT (compatible), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, Only Sketch, 115200”

WARNING: library TelegramBot claims to run on samd architecture(s) and may be incompatible with your current board which runs on esp8266 architecture(s).
tele2:13:35: error: no matching function for call to ‘TelegramBot::TelegramBot(const char [47], BearSSL::WiFiClientSecure&)’
TelegramBot bot (BotToken, net_ssl);
^
/Users/manuelbezenar/Documents/Arduino/tele2/tele2.ino:13:35: note: candidates are:
In file included from /Users/manuelbezenar/Documents/Arduino/tele2/tele2.ino:3:0:
/Users/manuelbezenar/Documents/Arduino/libraries/TelegramBot/src/TelegramBot.h:29:5: note: TelegramBot::TelegramBot(String, String, String, Client&)
TelegramBot(String token, String name, String username, Client &_client);
^
/Users/manuelbezenar/Documents/Arduino/libraries/TelegramBot/src/TelegramBot.h:29:5: note: candidate expects 4 arguments, 2 provided
/Users/manuelbezenar/Documents/Arduino/libraries/TelegramBot/src/TelegramBot.h:26:7: note: TelegramBot::TelegramBot(const TelegramBot&)
class TelegramBot
^
/Users/manuelbezenar/Documents/Arduino/libraries/TelegramBot/src/TelegramBot.h:26:7: note: candidate expects 1 argument, 2 provided
/Users/manuelbezenar/Documents/Arduino/libraries/TelegramBot/src/TelegramBot.h:26:7: note: TelegramBot::TelegramBot(TelegramBot&&)
/Users/manuelbezenar/Documents/Arduino/libraries/TelegramBot/src/TelegramBot.h:26:7: note: candidate expects 1 argument, 2 provided
Multiple libraries were found for “ArduinoJson.h”
Used: /Users/manuelbezenar/Documents/Arduino/libraries/ArduinoJson
Multiple libraries were found for “ESP8266WiFi.h”
Used: /Users/manuelbezenar/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.2/libraries/ESP8266WiFi
Multiple libraries were found for “TelegramBot.h”
Used: /Users/manuelbezenar/Documents/Arduino/libraries/TelegramBot
exit status 1
no matching function for call to ‘TelegramBot::TelegramBot(const char [47], BearSSL::WiFiClientSecure&)’

This report would have more information with
“Show verbose output during compilation”
option enabled in File -> Preferences.

]]>