CONFIG_SHELL=y
CONFIG_LOG=y
CONFIG_LOG_CMDS=y
CONFIG_INIT_STACKS=y
CONFIG_THREAD_STACK_INFO=y
CONFIG_KERNEL_SHELL=y
CONFIG_THREAD_MONITOR=y

CONFIG_LOG_BUFFER_SIZE=2048
CONFIG_HW_ID_LIBRARY=y
CONFIG_ASSERT=y
CONFIG_JSON_LIBRARY=y


CONFIG_PM_DEVICE=y
CONFIG_CRC=y
CONFIG_POWEROFF=y
CONFIG_HWINFO=y
CONFIG_ADC=y

CONFIG_PM_DEVICE_RUNTIME=y


CONFIG_THREAD_NAME=y
CONFIG_POSIX_API=y
CONFIG_POSIX_TIMERS=y
CONFIG_DATE_SHELL=y
CONFIG_THREAD_RUNTIME_STATS=y
CONFIG_THREAD_RUNTIME_STATS_USE_TIMING_FUNCTIONS=y

CONFIG_PICOLIBC_IO_FLOAT=y

# Settings
CONFIG_FLASH=y
CONFIG_MPU_ALLOW_FLASH_WRITE=y
CONFIG_NVS=y
#CONFIG_FLASH_PAGE_LAYOUT=y
#CONFIG_FLASH_MAP=y
#CONFIG_STREAM_FLASH=y
#CONFIG_NRF_CLOUD_ALERT=y

CONFIG_SETTINGS=y
#CONFIG_FCB=y
#CONFIG_SETTINGS_FCB=y

CONFIG_REBOOT=y

CONFIG_SMS=y
CONFIG_SMS_SUBSCRIBERS_MAX_CNT=2
CONFIG_SMS_LOG_LEVEL_DBG=n
CONFIG_MAIN_STACK_SIZE=1536

CONFIG_HEAP_MEM_POOL_SIZE=16384

CONFIG_SHELL_PROMPT_UART="sojo> "
#CONFIG_SHELL_CMD_BUFF_SIZE=4096
#CONFIG_SHELL_BACKEND_SERIAL_RX_RING_BUFFER_SIZE=4096

#CONFIG_USE_SEGGER_RTT=y
#CONFIG_NRF_MODEM_LIB_TRACE=y
#CONFIG_NRF_MODEM_LIB_TRACE_BACKEND_RTT=y

CONFIG_NETWORKING=y
CONFIG_NET_NATIVE=y
CONFIG_NET_IPV4=y

CONFIG_DATE_TIME=y
CONFIG_DATE_TIME_UPDATE_INTERVAL_SECONDS=28800
CONFIG_DATE_TIME_NTP=n

# Download Client - used by FOTA and PGPS
CONFIG_DOWNLOADER=y
#CONFIG_DOWNLOADER_STACK_SIZE=4352
#CONFIG_DOWNLOADER_MAX_HOSTNAME_SIZE=128


#CONFIG_NET_LOG=y
#CONFIG_MQTT_HELPER_LOG_LEVEL_DBG=y
#CONFIG_MQTT_LOG_LEVEL_DBG=y


# Modem library
CONFIG_NRF_MODEM_LIB=y
CONFIG_NRF_MODEM_LIB_SHMEM_TX_SIZE=22528
CONFIG_NRF_MODEM_LIB_SHMEM_RX_SIZE=8192
CONFIG_NRF_MODEM_LIB_ON_FAULT_APPLICATION_SPECIFIC=y

# LTE Link Control
CONFIG_LTE_LINK_CONTROL=y
# Request eDRX from the network
CONFIG_LTE_LC_EDRX_MODULE=y
CONFIG_LTE_EDRX_REQ=y
# PSM requested periodic TAU 8 hours
CONFIG_LTE_LC_PSM_MODULE=y
CONFIG_LTE_PSM_REQ_RPTAU="00101000"
# PSM requested active time 6 seconds
CONFIG_LTE_PSM_REQ_RAT="00000011"
CONFIG_LTE_NETWORK_MODE_LTE_M_GPS=y


# AT monitor library
CONFIG_AT_MONITOR=y

# Increase AT monitor heap because %NCELLMEAS notifications can be long.
# Note: with legacy NCELLMEAS types, 512 is enough, but with GCI search types
# it could be even longer: theoretical maximum of 4020 bytes.
CONFIG_AT_MONITOR_HEAP_SIZE=1024

# Custom AT commands
CONFIG_AT_CMD_CUSTOM=y
CONFIG_AT_CMD_CUSTOM_LOG_LEVEL_OFF=y

CONFIG_MODEM_INFO=y

CONFIG_AT_SHELL=y
#CONFIG_AT_SHELL_CMD_RESPOSNE_MAX_LEN
CONFIG_SHELL_WILDCARD=n
CONFIG_SHELL_BACKEND_SERIAL_TX_RING_BUFFER_SIZE=64
CONFIG_SHELL_BACKEND_SERIAL_RX_RING_BUFFER_SIZE=512


# GNSS
CONFIG_GNSS_SAMPLE_LOW_ACCURACY=y

# nRF Cloud
CONFIG_NRF_CLOUD=y
CONFIG_NRF_CLOUD_MQTT=n
CONFIG_NRF_CLOUD_COAP=y


# Enable the provisioning library
CONFIG_NRF_PROVISIONING=y
CONFIG_NRF_PROVISIONING_AUTO_INIT=n
CONFIG_NRF_PROVISIONING_COAP=y
#CONFIG_NRF_PROVISIONING_SHELL=y

# Location Services configuration
#CONFIG_LOCATION=y
#CONFIG_LOCATION_METHOD_GNSS=y
#CONFIG_LOCATION_METHOD_CELLULAR=y
#CONFIG_NRF_CLOUD_AGNSS=n
#CONFIG_NRF_CLOUD_LOCATION=y
#CONFIG_MODEM_INFO=y
#CONFIG_MODEM_INFO_ADD_NETWORK=y
#CONFIG_NRF_CLOUD_PGPS=y
#CONFIG_NRF_CLOUD_PGPS_REPLACEMENT_THRESHOLD=4
#CONFIG_NRF_CLOUD_PGPS_REQUEST_UPON_INIT=y


# AWS IoT library
CONFIG_AWS_IOT=y
CONFIG_AWS_IOT_BROKER_HOST_NAME="a1bl2ugg7axw2v-ats.iot.us-east-1.amazonaws.com"
CONFIG_AWS_IOT_TOPIC_UPDATE_DELTA_SUBSCRIBE=n
CONFIG_AWS_IOT_TOPIC_GET_ACCEPTED_SUBSCRIBE=n
CONFIG_AWS_IOT_TOPIC_GET_REJECTED_SUBSCRIBE=n
CONFIG_AWS_IOT_AUTO_DEVICE_SHADOW_REQUEST=n
CONFIG_AWS_IOT_CLIENT_ID_MAX_LEN=64

# MQTT helper library
CONFIG_MQTT_HELPER=y
CONFIG_MQTT_HELPER_SEC_TAG=201
CONFIG_MQTT_HELPER_LAST_WILL=n
CONFIG_MQTT_HELPER_STACK_SIZE=4096
CONFIG_MQTT_HELPER_RX_TX_BUFFER_SIZE=2048

# MQTT - Maximum MQTT keepalive timeout specified by AWS IoT Core
CONFIG_MQTT_KEEPALIVE=1200
CONFIG_MQTT_CLEAN_SESSION=y


