From 90c09e3e89ffeea94f53446ed61ed5c5cc5c1a94 Mon Sep 17 00:00:00 2001 From: pennam Date: Tue, 15 Apr 2025 10:52:36 +0200 Subject: [PATCH 1/8] Add dedicated workflow to compile provisioning binaries --- .github/workflows/compile-provisioning.yml | 205 +++++++++++++++++++++ 1 file changed, 205 insertions(+) create mode 100644 .github/workflows/compile-provisioning.yml diff --git a/.github/workflows/compile-provisioning.yml b/.github/workflows/compile-provisioning.yml new file mode 100644 index 000000000..4bf4362ab --- /dev/null +++ b/.github/workflows/compile-provisioning.yml @@ -0,0 +1,205 @@ +name: Compile Provisioning + +on: + pull_request: + paths: + - ".github/workflows/compile-provisioning.yml" + - "examples/**" + - "src/**" + push: + paths: + - ".github/workflows/compile-provisioning.yml" + - "examples/**" + - "src/**" + +jobs: + build: + runs-on: ubuntu-latest + + env: + # libraries to install for all boards + UNIVERSAL_LIBRARIES: | + # Install the ArduinoIoTCloud library from the repository + - source-path: ./ + - source-url: https://github.com/fabik111/Arduino_ConnectionHandler.git + version: 0314cf54593029aea05bb8c179e40a26128f7d67 + - name: ArduinoBLE + - name: ArduinoECCX08 + - name: ArduinoBearSSL + - name: ArduinoHttpClient + - name: Arduino_DebugUtils + - name: ArduinoMqttClient + - source-url: https://github.com/fabik111/Arduino_SecureElement.git + version: f5a23964a1c70048e48d5ed2d2657004446f0e3d + - source-url: https://github.com/fabik111/Arduino_CloudUtils.git + version: a8b52eaf500c63b2e8bd3e4b6f6c77b70fc3e65d + - source-url: https://github.com/arduino-libraries/Arduino_KVStore.git + - source-url: https://github.com/arduino-libraries/Arduino_UniqueHWId.git + - source-url: https://github.com/arduino-libraries/Arduino_NetworkConfigurator.git + # sketch paths to compile (recursive) for all boards + UNIVERSAL_SKETCH_PATHS: | + - examples/utility/Provisioning_2.0 + SKETCHES_REPORTS_PATH: sketches-reports + + strategy: + fail-fast: false + + matrix: + board: + - fqbn: arduino:samd:mkrwifi1010 + type: nina + artifact-name-suffix: arduino-samd-mkrwifi1010 + - fqbn: arduino:samd:nano_33_iot + type: nina + artifact-name-suffix: arduino-samd-nano_33_iot + - fqbn: arduino:mbed_portenta:envie_m7:split=100_0 + type: mbed_portenta + artifact-name-suffix: arduino-mbed_portenta-envie_m7 + - fqbn: arduino:mbed_nano:nanorp2040connect + type: nina + artifact-name-suffix: arduino-mbed_nano-nanorp2040connect + - fqbn: arduino:mbed_nicla:nicla_vision + type: mbed_nicla + artifact-name-suffix: arduino-mbed_nicla-nicla_vision + - fqbn: arduino:mbed_opta:opta + type: mbed_opta + artifact-name-suffix: arduino-mbed_opta-opta + - fqbn: arduino:mbed_giga:giga + type: mbed_giga + artifact-name-suffix: arduino-mbed_giga-giga + - fqbn: arduino:renesas_portenta:portenta_c33 + type: renesas_portenta + artifact-name-suffix: arduino-renesas_portenta-portenta_c33 + - fqbn: arduino:renesas_uno:unor4wifi + type: renesas_uno + artifact-name-suffix: arduino-renesas_uno-unor4wifi + + # make board type-specific customizations to the matrix jobs + include: + # MKR WiFi 1010, Nano 33 IoT, Nano RP2040 Connect + - board: + type: nina + platforms: | + # Install samd and mbed_nano platform via Boards Manager + - name: arduino:samd + - name: arduino:mbed_nano + libraries: | + - name: RTCZero + - source-url: https://github.com/andreagilardoni/WiFiNINA.git + version: 31616ac5a30f6281c68f982bc39800771b2fbaeb + - name: Arduino_JSON + - source-url: https://github.com/adafruit/Adafruit_SleepyDog.git + # Portenta + - board: + type: mbed_portenta + platforms: | + # Install mbed_portenta platform via Boards Manager + - name: arduino:mbed_portenta + libraries: | + - name: Arduino_Cellular + # Nicla Vision + - board: + type: mbed_nicla + platforms: | + # Install mbed_nicla platform via Boards Manager + - name: arduino:mbed_nicla + # Opta + - board: + type: mbed_opta + platforms: | + # Install mbed_opta platform via Boards Manager + - name: arduino:mbed_opta + # GIGA + - board: + type: mbed_giga + platforms: | + # Install mbed_giga platform via Boards Manager + - name: arduino:mbed_giga + # Portenta C33 + - board: + type: renesas_portenta + platforms: | + # Install renesas_portenta platform via Boards Manager + - name: arduino:renesas_portenta + libraries: | + - name: Arduino_Cellular + # UNO R4 WiFi + - board: + type: renesas_uno + platforms: | + # Install renesas_uno platform via Boards Manager + - name: arduino:renesas_uno + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Compile production provisioning sketch + uses: arduino/compile-sketches@v1 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + platforms: ${{ matrix.platforms }} + fqbn: ${{ matrix.board.fqbn }} + libraries: | + ${{ env.UNIVERSAL_LIBRARIES }} + ${{ matrix.libraries }} + sketch-paths: | + ${{ env.UNIVERSAL_SKETCH_PATHS }} + ${{ matrix.sketch-paths }} + enable-deltas-report: "true" + sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }} + cli-compile-flags: | + - --verbose + - --output-dir + - ${{ runner.temp }}/provisioning-prod + + - name: Compile staging provisioning sketch + uses: arduino/compile-sketches@v1 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + platforms: ${{ matrix.platforms }} + fqbn: ${{ matrix.board.fqbn }} + libraries: | + ${{ env.UNIVERSAL_LIBRARIES }} + ${{ matrix.libraries }} + sketch-paths: | + ${{ env.UNIVERSAL_SKETCH_PATHS }} + ${{ matrix.sketch-paths }} + enable-deltas-report: "true" + sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }} + cli-compile-flags: | + - --verbose + - --build-property + - "build.extra_flags=-DCOMPILE_TEST=1" + - --output-dir + - ${{ runner.temp }}/provisioning-staging + + - name: Write data to size trends report spreadsheet + # Update report on every push to the master branch + if: github.event_name == 'push' && github.ref == 'refs/heads/master' + uses: arduino/report-size-trends@main + with: + sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }} + google-key-file: ${{ secrets.GOOGLE_KEY_FILE }} + spreadsheet-id: 1I6NZkpZpf8KugBkE92adB1Z3_b7ZepOpCdYTOigJpN4 + + - name: Save memory usage change report as artifact + if: github.event_name == 'pull_request' + uses: actions/upload-artifact@v4 + with: + name: sketches-report-${{ matrix.board.artifact-name-suffix }} + path: ${{ env.SKETCHES_REPORTS_PATH }} + + - name: Save production artifact + if: github.event_name == 'pull_request' + uses: actions/upload-artifact@v4 + with: + name: provisioning-prod-${{ matrix.board.artifact-name-suffix }} + path: ${{ runner.temp }}/provisioning-prod/ + + - name: Save staging artifact + if: github.event_name == 'pull_request' + uses: actions/upload-artifact@v4 + with: + name: provisioning-staging-${{ matrix.board.artifact-name-suffix }} + path: ${{ runner.temp }}/provisioning-staging/ From c51f21b4080d3c50a921804a7d3e47ef03acf7fe Mon Sep 17 00:00:00 2001 From: pennam Date: Wed, 16 Apr 2025 14:43:10 +0200 Subject: [PATCH 2/8] update compile provisioning library refs --- .github/workflows/compile-provisioning.yml | 60 +++++++++++++++++----- 1 file changed, 47 insertions(+), 13 deletions(-) diff --git a/.github/workflows/compile-provisioning.yml b/.github/workflows/compile-provisioning.yml index 4bf4362ab..5dedd25cd 100644 --- a/.github/workflows/compile-provisioning.yml +++ b/.github/workflows/compile-provisioning.yml @@ -21,21 +21,26 @@ jobs: UNIVERSAL_LIBRARIES: | # Install the ArduinoIoTCloud library from the repository - source-path: ./ - - source-url: https://github.com/fabik111/Arduino_ConnectionHandler.git - version: 0314cf54593029aea05bb8c179e40a26128f7d67 - name: ArduinoBLE - - name: ArduinoECCX08 - - name: ArduinoBearSSL + version: 1.4.0 - name: ArduinoHttpClient + version: 0.6.1 - name: Arduino_DebugUtils + version: 1.4.0 - name: ArduinoMqttClient - - source-url: https://github.com/fabik111/Arduino_SecureElement.git - version: f5a23964a1c70048e48d5ed2d2657004446f0e3d - - source-url: https://github.com/fabik111/Arduino_CloudUtils.git - version: a8b52eaf500c63b2e8bd3e4b6f6c77b70fc3e65d - - source-url: https://github.com/arduino-libraries/Arduino_KVStore.git + version: 0.1.8 + - name: Arduino_KVStore + version: 1.0.0 + - name: Arduino_ConnectionHandler + version: 1.1.2 + - name: Arduino_SecureElement + version: 0.4.0 + - name: Arduino_CloudUtils + version: 1.1.1 - source-url: https://github.com/arduino-libraries/Arduino_UniqueHWId.git + version: 7e1bfeb586cac00f043c39997a1e9937ed8152b0 - source-url: https://github.com/arduino-libraries/Arduino_NetworkConfigurator.git + version: 6278b97dd9b8549e9a5b2f2aff1a35d4ae06501a # sketch paths to compile (recursive) for all boards UNIVERSAL_SKETCH_PATHS: | - examples/utility/Provisioning_2.0 @@ -82,53 +87,82 @@ jobs: platforms: | # Install samd and mbed_nano platform via Boards Manager - name: arduino:samd + version: 1.8.14 - name: arduino:mbed_nano + version: 4.2.4 libraries: | - name: RTCZero - - source-url: https://github.com/andreagilardoni/WiFiNINA.git - version: 31616ac5a30f6281c68f982bc39800771b2fbaeb - - name: Arduino_JSON - - source-url: https://github.com/adafruit/Adafruit_SleepyDog.git + version: 1.6.0 + - source-url: https://github.com/fabik111/ArduinoECCX08.git + version: df1480b6d379c5feaa5ce7853b9a24193a5fa084 + - name: Adafruit SleepyDog Library + version: 1.6.5 + - name: ArduinoBearSSL + version: 1.7.6 + - source-url: https://github.com/arduino-libraries/WiFiNINA.git + version: 69e786c5c73fe94b7f408853550f6f151cfc58b0 # Portenta - board: type: mbed_portenta platforms: | # Install mbed_portenta platform via Boards Manager - name: arduino:mbed_portenta + version: 4.2.4 libraries: | - name: Arduino_Cellular + version: 1.2.1 + - source-url: https://github.com/fabik111/ArduinoECCX08.git + version: df1480b6d379c5feaa5ce7853b9a24193a5fa084 + - name: ArduinoBearSSL + version: 1.7.6 # Nicla Vision - board: type: mbed_nicla platforms: | # Install mbed_nicla platform via Boards Manager - name: arduino:mbed_nicla + version: 4.2.4 # Opta - board: type: mbed_opta platforms: | # Install mbed_opta platform via Boards Manager - name: arduino:mbed_opta + version: 4.2.4 + libraries: | + - source-url: https://github.com/fabik111/ArduinoECCX08.git + version: df1480b6d379c5feaa5ce7853b9a24193a5fa084 + - name: ArduinoBearSSL + version: 1.7.6 # GIGA - board: type: mbed_giga platforms: | # Install mbed_giga platform via Boards Manager - name: arduino:mbed_giga + version: 4.2.4 + libraries: | + - source-url: https://github.com/fabik111/ArduinoECCX08.git + version: df1480b6d379c5feaa5ce7853b9a24193a5fa084 + - name: ArduinoBearSSL + version: 1.7.6 # Portenta C33 - board: type: renesas_portenta platforms: | # Install renesas_portenta platform via Boards Manager - name: arduino:renesas_portenta + version: 1.4.1 libraries: | - name: Arduino_Cellular + version: 1.2.1 # UNO R4 WiFi - board: type: renesas_uno platforms: | # Install renesas_uno platform via Boards Manager - name: arduino:renesas_uno + version: 1.4.1 steps: - name: Checkout From 30542da180b323db906bc684e05306d12ef7f80b Mon Sep 17 00:00:00 2001 From: fabik111 Date: Tue, 8 Jul 2025 12:16:11 +0200 Subject: [PATCH 3/8] add clean command for compile --- .github/workflows/compile-provisioning.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/compile-provisioning.yml b/.github/workflows/compile-provisioning.yml index 5dedd25cd..c09966aa9 100644 --- a/.github/workflows/compile-provisioning.yml +++ b/.github/workflows/compile-provisioning.yml @@ -183,6 +183,7 @@ jobs: enable-deltas-report: "true" sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }} cli-compile-flags: | + - --clean - --verbose - --output-dir - ${{ runner.temp }}/provisioning-prod @@ -202,6 +203,7 @@ jobs: enable-deltas-report: "true" sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }} cli-compile-flags: | + - --clean - --verbose - --build-property - "build.extra_flags=-DCOMPILE_TEST=1" From de058e39600e16920d9835cae4d935b5b5555dbc Mon Sep 17 00:00:00 2001 From: fabik111 Date: Wed, 23 Apr 2025 15:35:01 +0200 Subject: [PATCH 4/8] generate private key if fails in generating the token --- .github/workflows/compile-examples.yml | 18 ++++++--- .../Provisioning_2.0/ClaimingHandler.cpp | 38 +++++++++++++++++-- .../Provisioning_2.0/ClaimingHandler.h | 1 + 3 files changed, 47 insertions(+), 10 deletions(-) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index d30277a07..2010469e3 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -196,7 +196,8 @@ jobs: - name: Blues Wireless Notecard - name: ArduinoBLE - name: Arduino_KVStore - - name: Arduino_NetworkConfigurator + - source-url: https://github.com/arduino-libraries/Arduino_NetworkConfigurator.git + version: c7c6f9d4973222c1126ac3e73959e20870102c1f sketch-paths: | - examples/ArduinoIoTCloud-NetConfig - examples/ArduinoIoTCloud-DeferredOTA @@ -213,7 +214,8 @@ jobs: - name: Blues Wireless Notecard - name: ArduinoBLE - name: Arduino_KVStore - - name: Arduino_NetworkConfigurator + - source-url: https://github.com/arduino-libraries/Arduino_NetworkConfigurator.git + version: c7c6f9d4973222c1126ac3e73959e20870102c1f sketch-paths: | - examples/ArduinoIoTCloud-NetConfig - examples/ArduinoIoTCloud-DeferredOTA @@ -232,7 +234,8 @@ jobs: - name: Blues Wireless Notecard - name: ArduinoBLE - name: Arduino_KVStore - - name: Arduino_NetworkConfigurator + - source-url: https://github.com/arduino-libraries/Arduino_NetworkConfigurator.git + version: c7c6f9d4973222c1126ac3e73959e20870102c1f sketch-paths: | - examples/ArduinoIoTCloud-NetConfig - examples/ArduinoIoTCloud-DeferredOTA @@ -251,7 +254,8 @@ jobs: - name: Blues Wireless Notecard - name: ArduinoBLE - name: Arduino_KVStore - - name: Arduino_NetworkConfigurator + - source-url: https://github.com/arduino-libraries/Arduino_NetworkConfigurator.git + version: c7c6f9d4973222c1126ac3e73959e20870102c1f sketch-paths: | - examples/ArduinoIoTCloud-NetConfig - examples/ArduinoIoTCloud-DeferredOTA @@ -269,7 +273,8 @@ jobs: - name: Blues Wireless Notecard - name: ArduinoBLE - name: Arduino_KVStore - - name: Arduino_NetworkConfigurator + - source-url: https://github.com/arduino-libraries/Arduino_NetworkConfigurator.git + version: c7c6f9d4973222c1126ac3e73959e20870102c1f sketch-paths: | - examples/ArduinoIoTCloud-NetConfig - examples/ArduinoIoTCloud-Notecard @@ -285,7 +290,8 @@ jobs: - name: Blues Wireless Notecard - name: ArduinoBLE - name: Arduino_KVStore - - name: Arduino_NetworkConfigurator + - source-url: https://github.com/arduino-libraries/Arduino_NetworkConfigurator.git + version: c7c6f9d4973222c1126ac3e73959e20870102c1f sketch-paths: | - examples/ArduinoIoTCloud-NetConfig - examples/ArduinoIoTCloud-Notecard diff --git a/examples/utility/Provisioning_2.0/ClaimingHandler.cpp b/examples/utility/Provisioning_2.0/ClaimingHandler.cpp index 7456f410b..59eca730f 100644 --- a/examples/utility/Provisioning_2.0/ClaimingHandler.cpp +++ b/examples/utility/Provisioning_2.0/ClaimingHandler.cpp @@ -100,7 +100,7 @@ void ClaimingHandlerClass::getIdReqHandler() { idMsg.m.uhwid = _uhwidBytes; _agentManager.sendMsg(idMsg); - String token = getAIoTCloudJWT(*_secureElement, *_uhwid, _ts, 1); + String token = generateToken(); if (token == "") { DEBUG_ERROR("CH::%s Error: token not created", __FUNCTION__); sendStatus(StatusMessage::ERROR); @@ -112,6 +112,19 @@ void ClaimingHandlerClass::getIdReqHandler() { jwtMsg.m.jwt = token.c_str(); _agentManager.sendMsg(jwtMsg); _ts = 0; + + SElementJWS sejws; + String publicKey = sejws.publicKey(*_secureElement, 1, false); + if (publicKey == "") { + DEBUG_ERROR("CH::%s Error: public key not created", __FUNCTION__); + sendStatus(StatusMessage::ERROR); + return; + } + + //Send public key + ProvisioningOutputMessage publicKeyMsg = {MessageOutputType::PROV_PUBLIC_KEY}; + publicKeyMsg.m.provPublicKey = publicKey.c_str(); + _agentManager.sendMsg(publicKeyMsg); } else { DEBUG_ERROR("CH::%s Error: timestamp not provided" , __FUNCTION__); sendStatus(StatusMessage::PARAMS_NOT_FOUND); @@ -186,7 +199,24 @@ void ClaimingHandlerClass::getProvSketchVersionRequestCb() { _receivedEvent = ClaimingReqEvents::GET_PROV_SKETCH_VERSION; } -bool ClaimingHandlerClass::sendStatus(StatusMessage msg) { - ProvisioningOutputMessage statusMsg = { MessageOutputType::STATUS, { msg } }; - return _agentManager.sendMsg(statusMsg); +String ClaimingHandlerClass::generateToken() +{ + String token = getAIoTCloudJWT(*_secureElement, *_uhwid, _ts, 1); + if(token == "") { + byte publicKey[64]; + DEBUG_INFO("Generating private key"); + if(!_secureElement->generatePrivateKey(1, publicKey)){ + DEBUG_ERROR("CH::%s Error: private key generation failed", __FUNCTION__); + return ""; + } + token = getAIoTCloudJWT(*_secureElement, *_uhwid, _ts, 1); + } + + return token; +} + +bool ClaimingHandlerClass::sendStatus(StatusMessage msg) +{ + ProvisioningOutputMessage statusMsg = {MessageOutputType::STATUS, {msg}}; + return _agentManager.sendMsg(statusMsg); } diff --git a/examples/utility/Provisioning_2.0/ClaimingHandler.h b/examples/utility/Provisioning_2.0/ClaimingHandler.h index 77f2ebea6..7b8693b36 100644 --- a/examples/utility/Provisioning_2.0/ClaimingHandler.h +++ b/examples/utility/Provisioning_2.0/ClaimingHandler.h @@ -36,6 +36,7 @@ class ClaimingHandlerClass { LEDFeedbackClass &_ledFeedback; static inline uint64_t _ts; SecureElement *_secureElement; + String generateToken(); bool sendStatus(StatusMessage msg); /* Commands handlers */ From aed047aed7a0c1ff8b2f1c09ae69a6a0e9be2326 Mon Sep 17 00:00:00 2001 From: fabik111 Date: Fri, 27 Jun 2025 15:39:57 +0200 Subject: [PATCH 5/8] send public key before uhwid --- .../Provisioning_2.0/ClaimingHandler.cpp | 72 ++++++++++--------- 1 file changed, 38 insertions(+), 34 deletions(-) diff --git a/examples/utility/Provisioning_2.0/ClaimingHandler.cpp b/examples/utility/Provisioning_2.0/ClaimingHandler.cpp index 59eca730f..9e42c6469 100644 --- a/examples/utility/Provisioning_2.0/ClaimingHandler.cpp +++ b/examples/utility/Provisioning_2.0/ClaimingHandler.cpp @@ -92,43 +92,47 @@ void ClaimingHandlerClass::poll() { } void ClaimingHandlerClass::getIdReqHandler() { - if (_ts != 0) { - byte _uhwidBytes[32]; - hex::decode(_uhwid->c_str(), _uhwidBytes, _uhwid->length()); - //Send UHWID - ProvisioningOutputMessage idMsg = {MessageOutputType::UHWID}; - idMsg.m.uhwid = _uhwidBytes; - _agentManager.sendMsg(idMsg); - - String token = generateToken(); - if (token == "") { - DEBUG_ERROR("CH::%s Error: token not created", __FUNCTION__); - sendStatus(StatusMessage::ERROR); - return; - } - - //Send JWT - ProvisioningOutputMessage jwtMsg = {MessageOutputType::JWT}; - jwtMsg.m.jwt = token.c_str(); - _agentManager.sendMsg(jwtMsg); - _ts = 0; - - SElementJWS sejws; - String publicKey = sejws.publicKey(*_secureElement, 1, false); - if (publicKey == "") { - DEBUG_ERROR("CH::%s Error: public key not created", __FUNCTION__); - sendStatus(StatusMessage::ERROR); - return; - } - - //Send public key - ProvisioningOutputMessage publicKeyMsg = {MessageOutputType::PROV_PUBLIC_KEY}; - publicKeyMsg.m.provPublicKey = publicKey.c_str(); - _agentManager.sendMsg(publicKeyMsg); - } else { + if (_ts == 0) { DEBUG_ERROR("CH::%s Error: timestamp not provided" , __FUNCTION__); sendStatus(StatusMessage::PARAMS_NOT_FOUND); + return; + } + + byte _uhwidBytes[32]; + hex::decode(_uhwid->c_str(), _uhwidBytes, _uhwid->length()); + + String token = generateToken(); + if (token == "") { + DEBUG_ERROR("CH::%s Error: token not created", __FUNCTION__); + sendStatus(StatusMessage::ERROR); + return; } + + SElementJWS sejws; + String publicKey = sejws.publicKey(*_secureElement, 1, false); + if (publicKey == "") { + DEBUG_ERROR("CH::%s Error: public key not created", __FUNCTION__); + sendStatus(StatusMessage::ERROR); + return; + } + + //Send public key + ProvisioningOutputMessage publicKeyMsg = {MessageOutputType::PROV_PUBLIC_KEY}; + publicKeyMsg.m.provPublicKey = publicKey.c_str(); + _agentManager.sendMsg(publicKeyMsg); + + + //Send UHWID + ProvisioningOutputMessage idMsg = {MessageOutputType::UHWID}; + idMsg.m.uhwid = _uhwidBytes; + _agentManager.sendMsg(idMsg); + + //Send JWT + ProvisioningOutputMessage jwtMsg = {MessageOutputType::JWT}; + jwtMsg.m.jwt = token.c_str(); + _agentManager.sendMsg(jwtMsg); + _ts = 0; + } void ClaimingHandlerClass::resetStoredCredReqHandler() { From 169d098af679db98135293c56dd2c05a0da33534 Mon Sep 17 00:00:00 2001 From: fabik111 Date: Mon, 7 Jul 2025 10:41:46 +0200 Subject: [PATCH 6/8] Provisioning v0.3.0 --- examples/utility/Provisioning_2.0/Provisioning_2.0.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/utility/Provisioning_2.0/Provisioning_2.0.ino b/examples/utility/Provisioning_2.0/Provisioning_2.0.ino index 3ab02a278..5bf28a6e1 100644 --- a/examples/utility/Provisioning_2.0/Provisioning_2.0.ino +++ b/examples/utility/Provisioning_2.0/Provisioning_2.0.ino @@ -15,7 +15,7 @@ #include #include "utility/LEDFeedback.h" -const char *SKETCH_VERSION = "0.1.0"; +const char *SKETCH_VERSION = "0.3.0"; enum class DeviceState { HARDWARE_CHECK, From c445556e6765713538f730d415f719d2825d0881 Mon Sep 17 00:00:00 2001 From: fabik111 Date: Tue, 8 Jul 2025 14:10:29 +0200 Subject: [PATCH 7/8] print sketch version --- examples/utility/Provisioning_2.0/Provisioning_2.0.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/utility/Provisioning_2.0/Provisioning_2.0.ino b/examples/utility/Provisioning_2.0/Provisioning_2.0.ino index 5bf28a6e1..976d99805 100644 --- a/examples/utility/Provisioning_2.0/Provisioning_2.0.ino +++ b/examples/utility/Provisioning_2.0/Provisioning_2.0.ino @@ -59,7 +59,7 @@ void setup() { initProperties(); AgentsManagerClass::getInstance().begin(); LEDFeedbackClass::getInstance().begin(); - DEBUG_INFO("Starting Provisioning"); + DEBUG_INFO("Starting Provisioning version %s", SKETCH_VERSION); } void sendStatus(StatusMessage msg) { From e75f28048041f25db7a3bbd62bd8833e3b686eb9 Mon Sep 17 00:00:00 2001 From: fabik111 Date: Tue, 8 Jul 2025 16:59:07 +0200 Subject: [PATCH 8/8] add clear cache --- .github/workflows/compile-provisioning.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compile-provisioning.yml b/.github/workflows/compile-provisioning.yml index c09966aa9..089647058 100644 --- a/.github/workflows/compile-provisioning.yml +++ b/.github/workflows/compile-provisioning.yml @@ -167,7 +167,9 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - + - name: Clear cache + run: | + rm -rf ~/.cache - name: Compile production provisioning sketch uses: arduino/compile-sketches@v1 with: