Library to pull unique device ID from CPU chip. functions to load into a string that can be used in IoT access point ID and another to send the ID back on serial port. Tested on KL46Z but should work on STM and others by changing address where ID is located.

Dependents:   stm32_print_unique_serial_number_copy bcsdk bcsdk bcsdk-sdchain

Files at this revision

API Documentation at this revision

Comitter:
joeata2wh
Date:
Wed Mar 30 14:49:03 2016 +0000
Parent:
1:c7453c2b8a2f
Commit message:
update to use MIT license

Changed in this revision

uniqueCPUID.cpp Show annotated file Show diff for this revision Revisions of this file
uniqueCPUID.h Show annotated file Show diff for this revision Revisions of this file
diff -r c7453c2b8a2f -r 08766dc8051a uniqueCPUID.cpp
--- a/uniqueCPUID.cpp	Fri Mar 11 03:24:53 2016 +0000
+++ b/uniqueCPUID.cpp	Wed Mar 30 14:49:03 2016 +0000
@@ -1,7 +1,12 @@
 #include "mbed.h"
 #include "uniqueCPUID.h"
 
-
+/*
+  By Joseph Ellsworth CTO of A2WH
+  Take a look at A2WH.com Producing Water from Air using Solar Energy
+  March-2016 License: https://developer.mbed.org/handbook/MIT-Licence 
+  Please contact us http://a2wh.com for help with custom design projects.
+*/
 
 void getUniqueIDAsStr(char *destStr)
 {
diff -r c7453c2b8a2f -r 08766dc8051a uniqueCPUID.h
--- a/uniqueCPUID.h	Fri Mar 11 03:24:53 2016 +0000
+++ b/uniqueCPUID.h	Wed Mar 30 14:49:03 2016 +0000
@@ -1,8 +1,10 @@
 /*
-  by Joseph Ellsworth CTO A2WH.
-  Freeuse for all.  No promises,  No warranty *
+  By Joseph Ellsworth CTO of A2WH
+  Take a look at A2WH.com Producing Water from Air using Solar Energy
+  March-2016 License: https://developer.mbed.org/handbook/MIT-Licence 
   Please contact us http://a2wh.com for help with custom design projects.
 
+
   Most STM and Freescale ARM chips include a unique Serail Number embedded
   in the CPU.  This is a perfect number to use in IoT as a SSID.  I use
   this to produce the WIFi SID so I can walk up with a phone and download