CasaJasmina / TelegramBot-Library

Host a Telegram Bot on your Arduino, and interact with it from your favourite chat application
GNU Lesser General Public License v2.1
135 stars 52 forks source link

Library is not compatible with ArduinoJson Version 6 (Beta) #28

Open mnemocron opened 5 years ago

mnemocron commented 5 years ago

The Telegram Library does not compile when using the ArduinoJson Library version(s) 6 (beta) and up.

This issue is discussed on the ArduinoJson respository as well. bblanchon/ArduinoJson/issues/756

My suggestion for now is to add a notice in the readme.md and fix the library once ArduinoJson 6 is released.


I tried to compile the following example: hackster.io It works without issues in the latest ArduinoJson 5.13.4 (stable) Error Message:

C:\Users\simon\Documents\Arduino\libraries\TelegramBot\src\TelegramBot.cpp: In member function 'message TelegramBot::getUpdates()':

C:\Users\simon\Documents\Arduino\libraries\TelegramBot\src\TelegramBot.cpp:39:4: error: 'StaticJsonBuffer' was not declared in this scope

    StaticJsonBuffer<JSON_BUFF_SIZE> jsonBuffer;
tobozo commented 5 years ago

probably not a good example but this sketch implements both 5.x and 6.x syntaxes