Skip to content

Commit

Permalink
SE050: add serialNumber API compatible with ECCX08 library
Browse files Browse the repository at this point in the history
  • Loading branch information
pennam committed Oct 22, 2024
1 parent 8b7768f commit 55f37fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libraries/SE05X/src/SE05X.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 = length;
Expand Down
1 change: 1 addition & 0 deletions libraries/SE05X/src/SE05X.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 55f37fa

Please sign in to comment.