-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
78 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# | ||
# Copyright (c) 2022 1NCE | ||
# 1NCE IoT C SDK (ZEPHYR OS Module) | ||
# | ||
|
||
set(NCE_SDK_DIR ${ZEPHYR_CURRENT_MODULE_DIR}) | ||
zephyr_library() | ||
zephyr_include_directories(${NCE_SDK_DIR}/source/include) | ||
zephyr_include_directories(${NCE_SDK_DIR}/source/interface) | ||
zephyr_library_sources( | ||
${NCE_SDK_DIR}/source/nce_iot_c_sdk.c | ||
) | ||
|
||
zephyr_compile_definitions_ifdef(CONFIG_NCE_DEVICE_AUTHENTICATOR NCE_DEVICE_AUTHENTICATOR) | ||
zephyr_compile_definitions_ifdef(CONFIG_NCE_ENERGY_SAVER NCE_ENERGY_SAVER) | ||
zephyr_compile_definitions( | ||
NCE_SDK_CONNECT_ATTEMPTS=${CONFIG_NCE_SDK_CONNECT_ATTEMPTS}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# | ||
# Copyright (c) 2022 1NCE | ||
# 1NCE IoT C SDK (ZEPHYR OS Module) | ||
# | ||
|
||
config ZEPHYR_NCE_SDK_MODULE | ||
bool "1NCE IoT C SDK" | ||
|
||
|
||
if ZEPHYR_NCE_SDK_MODULE | ||
|
||
config NCE_DEVICE_AUTHENTICATOR | ||
bool "Enable 1NCE Device Authenticator" | ||
default y | ||
help | ||
use 1nce device authenticator to retrieve DTLS Security credentials. | ||
|
||
config NCE_ENERGY_SAVER | ||
bool "Enable 1NCE Energy Saver" | ||
default y | ||
help | ||
use 1nce energy saver to optimize payload size. | ||
|
||
config NCE_SDK_CONNECT_ATTEMPTS | ||
int "Max connection attempts to 1NCE server" | ||
default 5 | ||
|
||
|
||
module = NCE_SDK | ||
module-str = NCE_SDK | ||
source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config" | ||
|
||
endif # ZEPHYR_NCE_SDK_MODULE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# | ||
# Copyright (c) 2022 1NCE | ||
# 1NCE IoT C SDK (ZEPHYR OS Module) | ||
# | ||
|
||
name: nce-sdk | ||
|
||
build: | ||
cmake: zephyr | ||
kconfig: zephyr/Kconfig | ||
depends: | ||
- nrfxlib |