Skip to content

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

Description

@mnemocron

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions