Graduation Thesis, use Nucleo and X-Nucleo BLE
Dependencies: PulseSensor GSM Thermometer KalmanFilter
Diff: application/main.cpp
- Revision:
- 2:16f6cfcd7505
- Parent:
- 1:9eadd2dc4b6e
- Child:
- 3:9b552b775c6e
--- a/application/main.cpp Wed Feb 14 01:29:53 2018 +0000 +++ b/application/main.cpp Wed Feb 14 02:20:37 2018 +0000 @@ -1,12 +1,9 @@ /** - * This is the code for "BLE Device for motorbike". The device is attached on any bike at will. - * User can control 2 switches and these switches can control anything that user wants ie: turn on - * the bike, turn on the alarm system of the bike, turn on the light... - * Temperature sensor is also included in the device. User can view the temperature when he/she gets - * near the bike. + * This is the project for "BLE HealthCare". The device is attached on any patient's body at will. * Revision: - * version 0.8 02-12-2018 + * version 0.8 02-12-2018 + * version 0.8.5 02-14-2018 /* ======================== INCLUDES ========================= */ #include <events/mbed_events.h> @@ -94,7 +91,7 @@ /* setup advertising */ ble.gap().accumulateAdvertisingPayload(GapAdvertisingData::BREDR_NOT_SUPPORTED | GapAdvertisingData::LE_GENERAL_DISCOVERABLE); ble.gap().accumulateAdvertisingPayload(GapAdvertisingData::COMPLETE_LIST_16BIT_SERVICE_IDS, (uint8_t *)uuid16_list, sizeof(uuid16_list)); - ble.gap().accumulateAdvertisingPayload(GapAdvertisingData::THERMOMETER_EAR); + ble.gap().accumulateAdvertisingPayload(GapAdvertisingData::GENERIC_THERMOMETER ); ble.gap().accumulateAdvertisingPayload(GapAdvertisingData::GENERIC_HEART_RATE_SENSOR); ble.gap().accumulateAdvertisingPayload(GapAdvertisingData::COMPLETE_LOCAL_NAME, (uint8_t *)DEVICE_NAME, sizeof(DEVICE_NAME)); ble.gap().setAdvertisingType(GapAdvertisingParams::ADV_CONNECTABLE_UNDIRECTED);