Skip to content

ci: compile examples fix sketch name #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/compile-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ jobs:
# libraries to install for all boards
UNIVERSAL_LIBRARIES: |
- source-path: ./
- name: Arduino_CloudUtils
- name: Arduino_SecureElement
# sketch paths to compile (recursive) for all boards
UNIVERSAL_SKETCH_PATHS: |
- examples/boardID
- examples/uniqueHWId
SKETCHES_REPORTS_PATH: sketches-reports

strategy:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Arduino HardWare Unique Id
# Arduino Unique Hardware Id

This library contains a set of functionalities to compute the hardware unique Id
This library contains a set of functionalities to compute the unique hardware Id
of an Arduino board
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

#include <Arduino_HWUniqueId.h>
#include <Arduino_UniqueHWId.h>

void setup() {
Serial.begin(9600);
while (!Serial);

HWUniqueId Id;
UniqueHWId Id;
if(Id.begin()) {
Serial.println(Id.get());
} else {
Expand Down
8 changes: 5 additions & 3 deletions library.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name=Arduino_HWUniqueId
name=Arduino_UniqueHWId
version=0.0.1
author=Arduino
maintainer=Arduino <[email protected]>
sentence=Utility module to compute hardware unique identity
sentence=Utility module to compute unique hardware identity
paragraph=
category=Communication
url=https://github.com/arduino-libraries/Arduino_HWUniqueId
url=https://github.com/arduino-libraries/Arduino_UniqueHWId
architectures=*
includes=Arduino_UniqueHWId.h
depends=Arduino_CloudUtils,Arduino_SecureElement
2 changes: 1 addition & 1 deletion src/Arduino_HWUniqueId.h → src/Arduino_UniqueHWId.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
*/
#pragma once

#include "HWUniqueId.h"
#include "uniqueHWId.h"
8 changes: 4 additions & 4 deletions src/HWUniqueId.cpp → src/uniqueHWId.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@

#include <Arduino_SHA256.h>
#include <Arduino_HEX.h>
#include "HWUniqueId.h"
#include "uniqueHWId.h"

bool HWUniqueId::begin() {
bool UniqueHWId::begin() {
_init =_sId.begin() && _nId.begin();
return _init;
}

bool HWUniqueId::get(uint8_t* in, uint32_t size) {
bool UniqueHWId::get(uint8_t* in, uint32_t size) {
if (_init == false || size < BOARD_PROVISIONING_ID_SIZE) {
Serial.println("BOARD_PROVISIONING_ID_SIZE ERROR");
return false;
Expand All @@ -40,7 +40,7 @@ bool HWUniqueId::get(uint8_t* in, uint32_t size) {
return true;
}

String HWUniqueId::get() {
String UniqueHWId::get() {
uint8_t data[BOARD_PROVISIONING_ID_SIZE];
if (!get(data, sizeof(data))) {
return String("");
Expand Down
2 changes: 1 addition & 1 deletion src/HWUniqueId.h → src/uniqueHWId.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/*
* This class contains the methods to get board hardware unique id
*/
class HWUniqueId {
class UniqueHWId {

public:
static constexpr int BOARD_PROVISIONING_ID_SIZE = UC_UID_SIZE +
Expand Down
Loading