Commit 1dc542e8 authored by Michał Więckowski's avatar Michał Więckowski Committed by Kishen Maloor

Display uuid of client certification app for automation purpose

parent 4dca743c
Pipeline #685 passed with stage
in 8 minutes and 56 seconds
......@@ -15,6 +15,7 @@
*/
#include "oc_api.h"
#include "oc_core_res.h"
#include "port/oc_clock.h"
#include "oc_pki.h"
#include "oc_introspection.h"
......@@ -505,6 +506,15 @@ factory_presets_cb(size_t device, void *data)
#endif /* OC_SECURITY && OC_PKI */
}
void
display_device_uuid(void)
{
char buffer[OC_UUID_LEN];
oc_uuid_to_str(oc_core_get_device_id(0), buffer, sizeof(buffer));
PRINT("Started device with ID: %s\n", buffer);
}
int
main(void)
{
......@@ -536,6 +546,8 @@ main(void)
return -1;
}
display_device_uuid();
int c;
while (quit != 1) {
display_menu();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment