#
# Copyright (c) 2020 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

menu "UDP Sample Settings"

config UDP_DATA_UPLOAD_SIZE_BYTES
	int "Number of bytes transmitted to the server"
	default 10

config UDP_DATA_UPLOAD_FREQUENCY_SECONDS
	int "How often data is transmitted to the server"
	default 900

config UDP_DATA_UPLOAD_ITERATIONS
	int "Number of data transmissions to the server before shutdown"
	range -1 2147483647
	default -1
	help
	  Number of data transmissions to the server before shutdown.
	  Set to -1 to transmit indefinitely.

config UDP_SERVER_ADDRESS_STATIC
	string "UDP server IP address"
	default "8.8.8.8"

config UDP_SERVER_PORT
	int "UDP server port number"
	default "2469"

config UDP_PSM_ENABLE
	bool "Enable LTE Power Saving Mode (PSM)"
	default y
	select LTE_PSM_REQ

config UDP_EDRX_ENABLE
	bool "Enable LTE enhanced Discontinuous Reception (eDRX)"
	select LTE_EDRX_REQ

config UDP_RAI_ENABLE
	bool "Enable LTE Release Assistance Indication (RAI)"
	default y
	select LTE_RAI_REQ

if UDP_RAI_ENABLE

choice UDP_RAI_INDICATION
	prompt "RAI indication to set for UDP transmission"
	default UDP_RAI_LAST

config UDP_RAI_NO_DATA
	bool "Indicates that there will be no upcoming data transmission anymore"

config UDP_RAI_LAST
	bool "Indicates that the next transmission will be the last one for some time"

config UDP_RAI_ONGOING
	bool "Indicates that the client expects to use the socket more after the next transmission"

endchoice

endif # UDP_RAI_ENABLE

endmenu

module = UDP
module-str = UDP sample
source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config"

menu "Zephyr Kernel"
source "Kconfig.zephyr"
endmenu
