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;
|
||||
```
|
||||
|
||||
**Returns the size (in bytes) of an object with n elements.**
|
||||
**Can be very handy to determine the size of a StaticJsonBuffer.**
|
||||
**Dinamic size.**
|
||||
_Returns the size (in bytes) of an object with n elements._
|
||||
_Can be very handy to determine the size of a StaticJsonBuffer._
|
||||
|
||||
```c++
|
||||
struct SensorData {
|
||||
@@ -287,7 +288,7 @@ struct SensorData {
|
||||
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