mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-08-15 18:41:12 +02:00
Updated API Reference (markdown)
@@ -277,8 +277,9 @@ Returns a reference to the new JsonArray or JsonArray::invalid() if the allocati
|
|||||||
StaticJsonBuffer<200> jsonBuffer;
|
StaticJsonBuffer<200> jsonBuffer;
|
||||||
```
|
```
|
||||||
|
|
||||||
**Returns the size (in bytes) of an object with n elements.**
|
**Dinamic size.**
|
||||||
**Can be very handy to determine the size of a StaticJsonBuffer.**
|
_Returns the size (in bytes) of an object with n elements._
|
||||||
|
_Can be very handy to determine the size of a StaticJsonBuffer._
|
||||||
|
|
||||||
```c++
|
```c++
|
||||||
struct SensorData {
|
struct SensorData {
|
||||||
@@ -287,7 +288,7 @@ struct SensorData {
|
|||||||
float value;
|
float value;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define SENSORDATA_JSON_SIZE (**JSON_OBJECT_SIZE(3)**)
|
#define SENSORDATA_JSON_SIZE (JSON_OBJECT_SIZE(3))
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user