Skip to content

Commit 4127b58

Browse files
show keys being preserved across reset
1 parent 78a115b commit 4127b58

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

BLE_SM/source/main.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,15 @@ int main()
501501
peripheral.run();
502502
}
503503

504+
#if MBED_CONF_APP_FILESYSTEM_SUPPORT
505+
/* show persistence of keys across resets */
506+
{
507+
printf("\r\n PERIPHERAL (with restored keys) \r\n\r\n");
508+
SMDevicePeripheral peripheral(ble, queue, peer_address);
509+
peripheral.run();
510+
}
511+
#endif
512+
504513
{
505514
printf("\r\n CENTRAL \r\n\r\n");
506515
SMDeviceCentral central(ble, queue, peer_address);

0 commit comments

Comments
 (0)