From 4e602534ae6f758ea9ea33d29bcdf4ad3cf72d78 Mon Sep 17 00:00:00 2001 From: pennam Date: Tue, 22 Oct 2024 10:16:23 +0200 Subject: [PATCH] SE050: add serialNumber API compatible with ECCX08 library --- libraries/SE05X/src/SE05X.cpp | 5 +++++ libraries/SE05X/src/SE05X.h | 1 + 2 files changed, 6 insertions(+) diff --git a/libraries/SE05X/src/SE05X.cpp b/libraries/SE05X/src/SE05X.cpp index c12031ba..3e6a9d0a 100644 --- a/libraries/SE05X/src/SE05X.cpp +++ b/libraries/SE05X/src/SE05X.cpp @@ -107,6 +107,11 @@ void SE05XClass::end() Se05x_API_SessionClose(&_se05x_session); } +int SE05XClass::serialNumber(byte sn[]) +{ + return serialNumber(sn, SE05X_SN_LENGTH); +} + int SE05XClass::serialNumber(byte sn[], size_t length) { size_t uidLen; diff --git a/libraries/SE05X/src/SE05X.h b/libraries/SE05X/src/SE05X.h index 38a459d8..124a82c7 100644 --- a/libraries/SE05X/src/SE05X.h +++ b/libraries/SE05X/src/SE05X.h @@ -44,6 +44,7 @@ class SE05XClass int begin(); void end(); + int serialNumber(byte sn[]); int serialNumber(byte sn[], size_t length); #if defined (ARDUINO) String serialNumber();