File tree Expand file tree Collapse file tree 6 files changed +98
-4
lines changed
BLE_GattClient_CharacteristicUpdates
BLE_GattClient_CharacteristicWrite Expand file tree Collapse file tree 6 files changed +98
-4
lines changed Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2020 ARM Limited. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ cmake_minimum_required (VERSION 3.19.0 FATAL_ERROR )
5
+
6
+ set (MBED_PATH ${CMAKE_CURRENT_SOURCE_DIR} /mbed-os CACHE INTERNAL "" )
7
+ set (MBED_CONFIG_PATH ${CMAKE_CURRENT_SOURCE_DIR} /.mbedbuild CACHE INTERNAL "" )
8
+ set (APP_TARGET BLE_GattClient_CharacteristicUpdates )
9
+
10
+ include (${MBED_PATH} /tools/cmake/app.cmake )
11
+
12
+ add_subdirectory (${MBED_PATH} )
13
+
14
+ add_subdirectory (mbed-os-ble-utils )
15
+
16
+ add_executable (${APP_TARGET} )
17
+
18
+ mbed_configure_app_target (${APP_TARGET} )
19
+
20
+ mbed_set_mbed_target_linker_script (${APP_TARGET} )
21
+
22
+ project (${APP_TARGET} )
23
+
24
+ target_include_directories (${APP_TARGET}
25
+ PRIVATE
26
+ ./source
27
+ )
28
+
29
+ target_sources (${APP_TARGET}
30
+ PRIVATE
31
+ source /main.cpp
32
+ )
33
+
34
+ target_link_libraries (${APP_TARGET}
35
+ PRIVATE
36
+ mbed-os
37
+ mbed-events
38
+ mbed-ble
39
+ mbed-ble-utils
40
+ )
41
+
42
+ mbed_set_post_build (${APP_TARGET} )
43
+
44
+ option (VERBOSE_BUILD "Have a verbose build process" )
45
+ if (VERBOSE_BUILD )
46
+ set (CMAKE_VERBOSE_MAKEFILE ON )
47
+ endif ()
Original file line number Diff line number Diff line change 1
- https://github.com/ARMmbed/mbed-os-ble-utils/#fdb54c0dd8056aaa24e59256b86b237773d07e70
1
+ https://github.com/ARMmbed/mbed-os-ble-utils/#5a87e640383b2a1465e19ea6c052f80459314670
Original file line number Diff line number Diff line change 20
20
21
21
#include " ble/GattClient.h"
22
22
23
- #include " mbed-os-ble-utils/ gatt_client_process.h"
23
+ #include " gatt_client_process.h"
24
24
25
25
/* *
26
26
* Handle discovery of the GATT server.
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2020 ARM Limited. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ cmake_minimum_required (VERSION 3.19.0 FATAL_ERROR )
5
+
6
+ set (MBED_PATH ${CMAKE_CURRENT_SOURCE_DIR} /mbed-os CACHE INTERNAL "" )
7
+ set (MBED_CONFIG_PATH ${CMAKE_CURRENT_SOURCE_DIR} /.mbedbuild CACHE INTERNAL "" )
8
+ set (APP_TARGET BLE_GattClient_CharacteristicWrite )
9
+
10
+ include (${MBED_PATH} /tools/cmake/app.cmake )
11
+
12
+ add_subdirectory (${MBED_PATH} )
13
+
14
+ add_subdirectory (mbed-os-ble-utils )
15
+
16
+ add_executable (${APP_TARGET} )
17
+
18
+ mbed_configure_app_target (${APP_TARGET} )
19
+
20
+ mbed_set_mbed_target_linker_script (${APP_TARGET} )
21
+
22
+ project (${APP_TARGET} )
23
+
24
+ target_include_directories (${APP_TARGET}
25
+ PRIVATE
26
+ ./source
27
+ )
28
+
29
+ target_sources (${APP_TARGET}
30
+ PRIVATE
31
+ source /main.cpp
32
+ )
33
+
34
+ target_link_libraries (${APP_TARGET}
35
+ PRIVATE
36
+ mbed-os
37
+ mbed-events
38
+ mbed-ble
39
+ mbed-ble-utils
40
+ )
41
+
42
+ mbed_set_post_build (${APP_TARGET} )
43
+
44
+ option (VERBOSE_BUILD "Have a verbose build process" )
45
+ if (VERBOSE_BUILD )
46
+ set (CMAKE_VERBOSE_MAKEFILE ON )
47
+ endif ()
Original file line number Diff line number Diff line change 1
- https://github.com/ARMmbed/mbed-os-ble-utils/#fdb54c0dd8056aaa24e59256b86b237773d07e70
1
+ https://github.com/ARMmbed/mbed-os-ble-utils/#5a87e640383b2a1465e19ea6c052f80459314670
Original file line number Diff line number Diff line change 16
16
17
17
#include < events/mbed_events.h>
18
18
#include " ble/BLE.h"
19
- #include " mbed-os-ble-utils/ gatt_client_process.h"
19
+ #include " gatt_client_process.h"
20
20
21
21
static EventQueue event_queue (/* event count */ 10 * EVENTS_EVENT_SIZE);
22
22
You can’t perform that action at this time.
0 commit comments