Bluetooth Low Energy enabled device with "Analog" feature, compatible with BlueST Protocol.
Dependencies: X_NUCLEO_LED61A1
Bluetooth Low Energy enabled device with "Analog" feature, compatible with BlueST Protocol.
Diff: source/main.cpp
- Revision:
- 1:71b8b1f19322
- Parent:
- 0:43dcd7811b58
--- a/source/main.cpp Thu May 10 12:52:16 2018 +0000 +++ b/source/main.cpp Mon Aug 06 10:00:29 2018 +0000 @@ -143,7 +143,7 @@ /* Setup advertising data. */ ble.gap().accumulateAdvertisingPayload(GapAdvertisingData::BREDR_NOT_SUPPORTED | GapAdvertisingData::LE_GENERAL_DISCOVERABLE); - ble.gap().accumulateAdvertisingPayload(GapAdvertisingData::COMPLETE_LIST_128BIT_SERVICE_IDS, (uint8_t *) CUSTOM_LED_SERVICE_UUID, sizeof(CUSTOM_LED_SERVICE_UUID)); + ble.gap().accumulateAdvertisingPayload(GapAdvertisingData::COMPLETE_LIST_128BIT_SERVICE_IDS, (uint8_t *) CUSTOM_SERVICE_UUID, sizeof(CUSTOM_SERVICE_UUID)); ble.gap().accumulateScanResponse(GapAdvertisingData::MANUFACTURER_SPECIFIC_DATA, MANUFACTURER_SPECIFIC_DATA, sizeof(MANUFACTURER_SPECIFIC_DATA)); ble.gap().accumulateScanResponse(GapAdvertisingData::COMPLETE_LOCAL_NAME, (const uint8_t *) DEVICE_NAME, sizeof(DEVICE_NAME) - 1); ble.gap().setAdvertisingType(GapAdvertisingParams::ADV_CONNECTABLE_UNDIRECTED);