robo 8080
/
BLE_TEST_konashi
konashi/SBBLEのテスト
Fork of BLE_LoopbackUART by
Diff: main.cpp
- Revision:
- 8:a62b8f7d5dcf
- Parent:
- 7:60964e52810e
diff -r 60964e52810e -r a62b8f7d5dcf main.cpp --- a/main.cpp Sat Aug 16 06:53:51 2014 +0000 +++ b/main.cpp Sun Aug 17 00:53:23 2014 +0000 @@ -17,7 +17,7 @@ #include "mbed.h" #include "BLEDevice.h" -//const static char DEVICE_NAME[] = "Nordic_HRM"; +const static char DEVICE_NAME[] = "mbed HRM1017"; static const uint16_t KONASHI_SERVICE_UUID = 0xFF00; @@ -411,7 +411,7 @@ /* setup advertising */ ble.accumulateAdvertisingPayload(GapAdvertisingData::BREDR_NOT_SUPPORTED); -// ble.accumulateAdvertisingPayload(GapAdvertisingData::COMPLETE_LOCAL_NAME, (uint8_t *)DEVICE_NAME, sizeof(DEVICE_NAME)); + ble.accumulateAdvertisingPayload(GapAdvertisingData::COMPLETE_LOCAL_NAME, (uint8_t *)DEVICE_NAME, sizeof(DEVICE_NAME)); ble.setAdvertisingType(GapAdvertisingParams::ADV_CONNECTABLE_UNDIRECTED); ble.setAdvertisingInterval(160); /* 100ms; in multiples of 0.625ms. */