A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://arduinojson.org/v7/config/enable_arduino_stream/ below:

ARDUINOJSON_ENABLE_ARDUINO_STREAM | ArduinoJson 7

Description

The macro ARDUINOJSON_ENABLE_ARDUINO_STREAM enables the support of Arduino’s Stream class in the library.

Stream defines the interface for byte streams in Arduino. It is the base class of:

The default value of ARDUINOJSON_ENABLE_ARDUINO_STREAM is 1 of ARDUINO is defined, and 0 otherwise. In other words, ArduinoJson supports the Stream class as soon as you work in an Arduino-compatible environment.

How to force the value?

If you need to force the support of Stream, add this at the top of your program:

#define ARDUINOJSON_ENABLE_ARDUINO_STREAM 1
#include <ArduinoJson.h>

On the other hand, if you need to disable Stream, do:

#define ARDUINOJSON_ENABLE_ARDUINO_STREAM 0
#include <ArduinoJson.h>

Only 0 and 1 are valid. Any other value (like false or true) will produce a compilation error.

See also
  1. Home
  2. Version 7
  3. Configuration
  4. ARDUINOJSON_ENABLE_ARDUINO_STREAM

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4