Display uuid of client certification app for automation purpose
*/
#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();
