-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
40 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#### v 1.1 - 2022.09.30 | ||
* Fix: fixed an issue when using NRF52 board | ||
* Add: Add support to mbed_nano, mbed_rp2040 [#f562fb1] (by khoih-prog) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,36 @@ | ||
# Microcontroller-Id Arduino Library by smartme.IO | ||
|
||
# Credits | ||
Based on [ArduinoUniqueID](https://github.com/ricaun/ArduinoUniqueID) by [Luiz Henrique Cassettari][https://github.com/ricaun) | ||
|
||
The Microcontroller-Id library allows to retrieve the manufacturer's serial number from the microprocessor. | ||
|
||
## Credits | ||
|
||
This library is based on [ArduinoUniqueID](https://github.com/ricaun/ArduinoUniqueID) by Luiz Henrique Cassettari (https://github.com/ricaun). | ||
|
||
## Supported devices | ||
|
||
Currently the following devices are supported: | ||
|
||
- Atmel AVR | ||
- Atmel SAM | ||
- Atmel SAMD | ||
- STM32 | ||
- Espressif ESP | ||
- RP2040 (Raspberry Pi Pico) | ||
- nRF52 | ||
|
||
## Examples and usage | ||
|
||
The library already comes with an example showing how to properly use the provided methods. The Id can be either retieved as a uint8_t array by calling the MicroID.getUniqueID function | ||
```c | ||
uint8_t uniqueID [16]; | ||
MicroID.getUniqueID(uniqueID, 16); | ||
``` | ||
|
||
or as a string via the MicroID.getUniqueIDString function. In both cases the Id will be zero padded until the given size is met however, if a size is not provided in the getUniqueIDString method, only the bare minimum Id will be returned. | ||
```c | ||
char id [50]; | ||
MicroID.getUniqueIDString(id); | ||
//This one will be padded until 20 bytes reached | ||
MicroID.getUniqueIDString(id, 20); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name=Microcontroller-id | ||
version=1.0.0 | ||
version=1.1.0 | ||
author=smartme.IO | ||
maintainer=smartme.IO <[email protected]> | ||
sentence=Retrieve manufacturer serial number stored inside the microcontroller | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters