File tree Expand file tree Collapse file tree 7 files changed +62
-1
lines changed Expand file tree Collapse file tree 7 files changed +62
-1
lines changed Original file line number Diff line number Diff line change @@ -449,3 +449,29 @@ jobs:
449449 with :
450450 name : Single headers
451451 path : ${{ steps.amalgamate.outputs.filename }}
452+
453+ esp-idf :
454+ needs : gcc
455+ name : ESP-IDF
456+ runs-on : ubuntu-latest
457+ steps :
458+ - name : Setup cache
459+ uses : actions/cache@v2
460+ with :
461+ path : ~/.espressif
462+ key : ${{ runner.os }}-esp-idf
463+ - name : Checkout ArduinoJson
464+ uses : actions/checkout@v2
465+ - name : Checkout ESP-IDF
466+ uses : actions/checkout@v2
467+ with :
468+ repository : espressif/esp-idf
469+ path : esp-idf
470+ submodules : true
471+ - name : Install ESP-IDF
472+ run : ./esp-idf/install.sh
473+ - name : Build example
474+ run : |
475+ source esp-idf/export.sh
476+ cd extras/ci/espidf
477+ idf.py build
Original file line number Diff line number Diff line change 1313* Fixed warning ` definition of implicit copy constructor for 'MsgPackDeserializer' is deprecated because it has a user-declared copy assignment operator `
1414* Added ` JsonArray::clear() ` (issue #1597 )
1515* Fixed ` JsonVariant::as<unsigned>() ` (issue #1601 )
16- * Added support for ESP-IDF component build (PR #1562 by @qt1 )
16+ * Added support for ESP-IDF component build (PR #1562 by @qt1 , PR # 1599 by @ andreaskuster )
1717
1818v6.18.0 (2021-05-05)
1919-------
Original file line number Diff line number Diff line change 1+ # ArduinoJson - https://arduinojson.org
2+ # Copyright Benoit Blanchon 2014-2021
3+ # MIT License
4+
5+ cmake_minimum_required (VERSION 3.5)
6+
7+ include ($ENV{IDF_PATH} /tools/cmake/project.cmake)
8+ project (example)
Original file line number Diff line number Diff line change 1+ ../../../..
Original file line number Diff line number Diff line change 1+ # ArduinoJson - https://arduinojson.org
2+ # Copyright Benoit Blanchon 2014-2021
3+ # MIT License
4+
5+ idf_component_register(SRCS "main.cpp"
6+ INCLUDE_DIRS "" )
Original file line number Diff line number Diff line change 1+ #
2+ # "main" pseudo-component makefile.
3+ #
4+ # (Uses default behaviour of compiling all source files in directory, adding 'include' to include path.)
Original file line number Diff line number Diff line change 1+ // ArduinoJson - https://arduinojson.org
2+ // Copyright Benoit Blanchon 2014-2021
3+ // MIT License
4+
5+ #include < ArduinoJson.h>
6+
7+ extern " C" void app_main () {
8+ char buffer[256 ];
9+ StaticJsonDocument<200 > doc;
10+
11+ doc[" hello" ] = " world" ;
12+ serializeJson (doc, buffer);
13+ deserializeJson (doc, buffer);
14+ serializeMsgPack (doc, buffer);
15+ deserializeMsgPack (doc, buffer);
16+ }
You can’t perform that action at this time.
0 commit comments