We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d64213 commit 0154880Copy full SHA for 0154880
main.cpp
@@ -17,6 +17,7 @@
17
// ----------------------------------------------------------------------------
18
#ifndef MBED_TEST_MODE
19
#include "mbed.h"
20
+#include "DeviceKey.h"
21
#include "kv_config.h"
22
#include "mbed-cloud-client/MbedCloudClient.h" // Required for new MbedCloudClient()
23
#include "factory_configurator_client.h" // Required for fcc_* functions and FCC_* defines
@@ -165,6 +166,10 @@ int main(void)
165
166
return -1;
167
}
168
169
+ // Initialize root of trust
170
+ DeviceKey &devkey = DeviceKey::get_instance();
171
+ devkey.generate_root_of_trust();
172
+
173
// Connect with NetworkInterface
174
printf("Connect to network\n");
175
network = NetworkInterface::get_default_instance();
0 commit comments