File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
connectivity/nanostack/mbed-mesh-api/source Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -291,6 +291,7 @@ static void wisun_tasklet_configure_and_connect_to_network(void)
291
291
#else
292
292
trusted_cert .cert_len = strlen ((const char * ) MBED_CONF_MBED_MESH_API_ROOT_CERTIFICATE ) + 1 ;
293
293
#endif
294
+ arm_network_trusted_certificates_remove ();
294
295
arm_network_trusted_certificate_add ((const arm_certificate_entry_s * )& trusted_cert );
295
296
296
297
arm_certificate_entry_s own_cert = {
@@ -309,6 +310,7 @@ static void wisun_tasklet_configure_and_connect_to_network(void)
309
310
#else
310
311
own_cert .key_len = strlen ((const char * ) MBED_CONF_MBED_MESH_API_OWN_CERTIFICATE_KEY ) + 1 ;
311
312
#endif
313
+ arm_network_own_certificates_remove ();
312
314
arm_network_own_certificate_add ((const arm_certificate_entry_s * )& own_cert );
313
315
#endif
314
316
You can’t perform that action at this time.
0 commit comments