二期c++接口
Dependencies: EthernetInterface mbed-rtos mbed uniqueCPUID
Fork of bcsdk by
Diff: main.cpp
- Revision:
- 9:d7468574ef8f
- Parent:
- 8:f2a567ee3a46
- Child:
- 10:aabd720e632c
diff -r f2a567ee3a46 -r d7468574ef8f main.cpp --- a/main.cpp Thu Sep 21 02:09:04 2017 +0000 +++ b/main.cpp Wed Sep 27 01:18:12 2017 +0000 @@ -3,6 +3,7 @@ #include "SDFileSystem.h" #include <stdio.h> //#include <string.h> +#include "uniqueCPUID.h" #include <iostream> #include <string> @@ -57,11 +58,20 @@ cout<< mh.listKeys() <<endl; return 0; } +void test_uuid() +{ + char pUUID[128] = {0}; + getUniqueIDAsStr(pUUID); + printf("CPUID = %s \n",pUUID); + //printUniqueId(uart); +} int main(void) { printf("main start\n"); + test_uuid(); + socket_init(); test_MockHsm();