diff --git a/examples/JsonConfigFile/JsonConfigFile.ino b/examples/JsonConfigFile/JsonConfigFile.ino index 4ab3d5d5..39c96ab8 100644 --- a/examples/JsonConfigFile/JsonConfigFile.ino +++ b/examples/JsonConfigFile/JsonConfigFile.ino @@ -10,6 +10,8 @@ // "hostname": "examples.com", // "port": 2731 // } +// +// https://arduinojson.org/v6/example/config/ #include #include @@ -130,4 +132,15 @@ void loop() { // not used in this example } -// Visit https://arduinojson.org/v6/example/config/ for more. +// See also +// -------- +// +// https://arduinojson.org/ contains the documentation for all the functions +// used above. It also includes an FAQ that will help you solve any +// serialization or deserialization problem. +// +// The book "Mastering ArduinoJson" contains a case study of a project that has +// a complex configuration with nested members. +// Contrary to this example, the project in the book uses the SPIFFS filesystem. +// Learn more at https://arduinojson.org/book/ +// Use the coupon code TWENTY for a 20% discount ❤❤❤❤❤ diff --git a/examples/JsonGeneratorExample/JsonGeneratorExample.ino b/examples/JsonGeneratorExample/JsonGeneratorExample.ino index 214e7ac4..a86be835 100644 --- a/examples/JsonGeneratorExample/JsonGeneratorExample.ino +++ b/examples/JsonGeneratorExample/JsonGeneratorExample.ino @@ -3,6 +3,8 @@ // MIT License // // This example shows how to generate a JSON document with ArduinoJson. +// +// https://arduinojson.org/v6/example/generator/ #include @@ -61,4 +63,15 @@ void loop() { // not used in this example } -// Visit https://arduinojson.org/v6/example/generator/ for more. +// See also +// -------- +// +// https://arduinojson.org/ contains the documentation for all the functions +// used above. It also includes an FAQ that will help you solve any +// serialization problem. +// +// The book "Mastering ArduinoJson" contains a tutorial on serialization. +// It begins with a simple example, like the one above, and then adds more +// features like serializing directly to a file or an HTTP request. +// Learn more at https://arduinojson.org/book/ +// Use the coupon code TWENTY for a 20% discount ❤❤❤❤❤ diff --git a/examples/JsonHttpClient/JsonHttpClient.ino b/examples/JsonHttpClient/JsonHttpClient.ino index bd2b682f..0af6188c 100644 --- a/examples/JsonHttpClient/JsonHttpClient.ino +++ b/examples/JsonHttpClient/JsonHttpClient.ino @@ -15,6 +15,8 @@ // 2.302038 // ] // } +// +// https://arduinojson.org/v6/example/http-client/ #include #include @@ -98,4 +100,16 @@ void loop() { // not used in this example } -// Visit https://arduinojson.org/v6/example/http-client/ for more. +// See also +// -------- +// +// https://arduinojson.org/ contains the documentation for all the functions +// used above. It also includes an FAQ that will help you solve any +// serialization problem. +// +// The book "Mastering ArduinoJson" contains a tutorial on deserialization +// showing how to parse the response from GitHub's API. In the last chapter, +// it shows how to parse the huge documents from OpenWeatherMap +// and Reddit. +// Learn more at https://arduinojson.org/book/ +// Use the coupon code TWENTY for a 20% discount ❤❤❤❤❤ diff --git a/examples/JsonParserExample/JsonParserExample.ino b/examples/JsonParserExample/JsonParserExample.ino index 1be15b50..5ef26cff 100644 --- a/examples/JsonParserExample/JsonParserExample.ino +++ b/examples/JsonParserExample/JsonParserExample.ino @@ -3,6 +3,8 @@ // MIT License // // This example shows how to deserialize a JSON document with ArduinoJson. +// +// https://arduinojson.org/v6/example/parser/ #include @@ -64,4 +66,15 @@ void loop() { // not used in this example } -// Visit https://arduinojson.org/v6/example/parser/ for more. +// See also +// -------- +// +// https://arduinojson.org/ contains the documentation for all the functions +// used above. It also includes an FAQ that will help you solve any +// deserialization problem. +// +// The book "Mastering ArduinoJson" contains a tutorial on deserialization. +// It begins with a simple example, like the one above, and then adds more +// features like deserializing directly from a file or an HTTP request. +// Learn more at https://arduinojson.org/book/ +// Use the coupon code TWENTY for a 20% discount ❤❤❤❤❤ diff --git a/examples/JsonServer/JsonServer.ino b/examples/JsonServer/JsonServer.ino index 7efbb3a5..9d2cc58a 100644 --- a/examples/JsonServer/JsonServer.ino +++ b/examples/JsonServer/JsonServer.ino @@ -12,6 +12,8 @@ // "analog": [0, 76, 123, 158, 192, 205], // "digital": [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0] // } +// +// https://arduinojson.org/v6/example/http-server/ #include #include @@ -94,4 +96,15 @@ void loop() { client.stop(); } -// Visit https://arduinojson.org/v6/example/http-server/ for more. +// See also +// -------- +// +// https://arduinojson.org/ contains the documentation for all the functions +// used above. It also includes an FAQ that will help you solve any +// serialization problem. +// +// The book "Mastering ArduinoJson" contains a tutorial on serialization. +// It begins with a simple example, then adds more features like serializing +// directly to a file or an HTTP client. +// Learn more at https://arduinojson.org/book/ +// Use the coupon code TWENTY for a 20% discount ❤❤❤❤❤ diff --git a/examples/JsonUdpBeacon/JsonUdpBeacon.ino b/examples/JsonUdpBeacon/JsonUdpBeacon.ino index 3453a140..0514fe4b 100644 --- a/examples/JsonUdpBeacon/JsonUdpBeacon.ino +++ b/examples/JsonUdpBeacon/JsonUdpBeacon.ino @@ -16,6 +16,8 @@ // For example, you can run netcat on your computer // $ ncat -ulp 8888 // See https://nmap.org/ncat/ +// +// https://arduinojson.org/v6/example/udp-beacon/ #include #include @@ -84,4 +86,15 @@ void loop() { delay(10000); } -// Visit https://arduinojson.org/v6/example/udp-beacon/ for more. +// See also +// -------- +// +// https://arduinojson.org/ contains the documentation for all the functions +// used above. It also includes an FAQ that will help you solve any +// serialization problem. +// +// The book "Mastering ArduinoJson" contains a tutorial on serialization. +// It begins with a simple example, then adds more features like serializing +// directly to a file or any stream. +// Learn more at https://arduinojson.org/book/ +// Use the coupon code TWENTY for a 20% discount ❤❤❤❤❤ diff --git a/examples/MsgPackParser/MsgPackParser.ino b/examples/MsgPackParser/MsgPackParser.ino index 5dda5bd1..d149e397 100644 --- a/examples/MsgPackParser/MsgPackParser.ino +++ b/examples/MsgPackParser/MsgPackParser.ino @@ -4,6 +4,8 @@ // // This example shows how to deserialize a MessagePack document with // ArduinoJson. +// +// https://arduinojson.org/v6/example/msgpack-parser/ #include @@ -71,5 +73,3 @@ void setup() { void loop() { // not used in this example } - -// Visit https://arduinojson.org/v6/example/msgpack-parser/ for more. diff --git a/examples/ProgmemExample/ProgmemExample.ino b/examples/ProgmemExample/ProgmemExample.ino index 08a58d95..310a820c 100644 --- a/examples/ProgmemExample/ProgmemExample.ino +++ b/examples/ProgmemExample/ProgmemExample.ino @@ -8,6 +8,8 @@ // Use Flash strings sparingly, because ArduinoJson duplicates them in the // JsonDocument. Prefer plain old char*, as they are more efficient in term of // code size, speed, and memory usage. +// +// https://arduinojson.org/v6/example/progmem/ #include @@ -56,4 +58,15 @@ void loop() { // not used in this example } -// Visit https://arduinojson.org/v6/example/progmem/ for more. +// See also +// -------- +// +// https://arduinojson.org/ contains the documentation for all the functions +// used above. It also includes an FAQ that will help you solve any memory +// problem. +// +// The book "Mastering ArduinoJson" contains a quick C++ course that explains +// how your microcontroller stores strings in memory. It also tells why you +// should not abuse Flash strings with ArduinoJson. +// Learn more at https://arduinojson.org/book/ +// Use the coupon code TWENTY for a 20% discount ❤❤❤❤❤ diff --git a/examples/StringExample/StringExample.ino b/examples/StringExample/StringExample.ino index 96f03bb9..040f8e46 100644 --- a/examples/StringExample/StringExample.ino +++ b/examples/StringExample/StringExample.ino @@ -7,6 +7,8 @@ // Use String objects sparingly, because ArduinoJson duplicates them in the // JsonDocument. Prefer plain old char[], as they are more efficient in term of // code size, speed, and memory usage. +// +// https://arduinojson.org/v6/example/string/ #include @@ -62,4 +64,14 @@ void loop() { // not used in this example } -// Visit https://arduinojson.org/v6/example/string/ for more. +// See also +// -------- +// +// https://arduinojson.org/ contains the documentation for all the functions +// used above. It also includes an FAQ that will help you solve any problem. +// +// The book "Mastering ArduinoJson" contains a quick C++ course that explains +// how your microcontroller stores strings in memory. On several occasions, it +// shows how you can avoid String in your program. +// Learn more at https://arduinojson.org/book/ +// Use the coupon code TWENTY for a 20% discount ❤❤❤❤❤