Skip to content

Commit cc3c7c5

Browse files
committed
samples: cellular: nrf_cloud_ble_gateway: New sample
Migrate sample from nRF Cloud repo to nRF Connect SDK. Replace old cloud interface from ATv1 with MSS. Get to run on NCS 2.9.0. Jira: IRIS-9993 Signed-off-by: Pete Skeggs <[email protected]>
1 parent 212dbd3 commit cc3c7c5

File tree

115 files changed

+16740
-44
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+16740
-44
lines changed

include/net/nrf_cloud.h

-8
Original file line numberDiff line numberDiff line change
@@ -625,14 +625,6 @@ struct nrf_cloud_gnss_data {
625625
};
626626
};
627627

628-
#ifdef CONFIG_NRF_CLOUD_GATEWAY
629-
/** @brief Structure to hold message received from nRF Cloud. */
630-
struct nrf_cloud_gw_data {
631-
struct nrf_cloud_data data;
632-
uint16_t id;
633-
};
634-
#endif
635-
636628
/** @brief Data to control behavior of the nrf_cloud library from the
637629
* cloud side. This data is stored in the device shadow.
638630
*/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
certs
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
#
2+
# Copyright (c) 2024 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
cmake_minimum_required(VERSION 3.20.0)
8+
9+
set(BOARD_ROOT ${CMAKE_CURRENT_LIST_DIR})
10+
11+
set(spm_CONF_FILE
12+
prj.conf
13+
${CMAKE_CURRENT_SOURCE_DIR}/${BOARD}_spm.conf)
14+
15+
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
16+
project(nrf_cloud_ble_gateway)
17+
zephyr_compile_definitions(PROJECT_NAME=${PROJECT_NAME})
18+
19+
# Include certs files if enabled.
20+
zephyr_include_directories_ifdef(CONFIG_NRF_CLOUD_PROVISION_CERTIFICATES certs)
21+
22+
# NORDIC SDK APP START
23+
target_sources(app PRIVATE src/main.c)
24+
target_sources(app PRIVATE src/application.c)
25+
target_sources(app PRIVATE src/cloud_connection.c)
26+
target_sources(app PRIVATE src/message_queue.c)
27+
target_sources(app PRIVATE src/temperature.c)
28+
target_sources(app PRIVATE src/fota_support.c)
29+
target_sources(app PRIVATE src/led_control.c)
30+
target_sources(app PRIVATE src/sample_reboot.c)
31+
target_sources(app PRIVATE src/shadow_config.c)
32+
33+
if(CONFIG_LOCATION_TRACKING)
34+
target_sources(app PRIVATE src/location_tracking.c)
35+
endif()
36+
37+
if(CONFIG_COAP_SHADOW)
38+
target_sources(app PRIVATE src/shadow_support_coap.c)
39+
endif()
40+
41+
if(CONFIG_COAP_FOTA)
42+
target_sources(app PRIVATE src/fota_support_coap.c)
43+
endif()
44+
45+
if(CONFIG_NRF_PROVISIONING)
46+
target_sources(app PRIVATE src/provisioning_support.c)
47+
endif()
48+
49+
# Include modem-specific features if supported
50+
if(CONFIG_NRF_MODEM_LIB)
51+
target_sources(app PRIVATE src/at_commands.c)
52+
endif()
53+
54+
if (CONFIG_NRF_CLOUD_GATEWAY)
55+
target_sources(app PRIVATE src/ble/ble.c)
56+
target_sources(app PRIVATE src/ble/ble_codec.c)
57+
target_sources(app PRIVATE src/ble/ble_conn_mgr.c)
58+
target_sources(app PRIVATE src/ble/gateway.c)
59+
target_sources_ifdef(CONFIG_SHELL app PRIVATE src/ble/cli.c)
60+
target_sources_ifdef(CONFIG_GATEWAY_BLE_FOTA app PRIVATE src/ble/dfu/peripheral_dfu.c)
61+
target_sources_ifdef(CONFIG_FLASH_TEST, app PRIVATE src/ble/flash/flash_test.c)
62+
zephyr_include_directories(src src/ble src/ble/flash src/ble/dfu)
63+
#add_subdirectory(src/ble/dfu)
64+
add_subdirectory(src/ble/flash)
65+
endif()
66+
67+
# NORDIC SDK APP END

0 commit comments

Comments
 (0)