北海道情報専門学校 ライフハック研究所のエンベデッドUSBチーム松葉和仁により開発されたUSBSecのmbedに使用するソースコード by 和仁

Dependencies:   SDFileSystem MusicEngine

Fork of mbed-os-example-ble-LED by mbed-os-examples

北海道情報専門学校 ライフハック研究所 エンベデッドUSB USBSec用mbedプログラム

松葉和仁

Revision:
34:41da17c652f5
Parent:
33:26072cb714d9
Child:
37:dcb097426442
--- a/source/main.cpp	Wed Feb 08 01:51:56 2017 +0000
+++ b/source/main.cpp	Wed Feb 08 01:56:41 2017 +0000
@@ -644,9 +644,6 @@
     char initialValueForINITGETCharacteristic = authenticationInformation;
     initServicePtr = new INITService(ble, initialValueForINITSETCharacteristic,initialValueForINITGETCharacteristic);
 
-    const uint8_t blePasscode[] = {1,1,1,1,1,1};
-    ble.initializeSecurity(true,true,SecurityManager::IO_CAPS_NONE,blePasscode);
-
     /* setup advertising */
     /* BLEクライアントへの広告の設定 */
     ble.gap().accumulateAdvertisingPayload(GapAdvertisingData::BREDR_NOT_SUPPORTED | GapAdvertisingData::LE_GENERAL_DISCOVERABLE);