# General config
CONFIG_PICOLIBC=y
CONFIG_ASSERT=y
CONFIG_REBOOT=y
CONFIG_FPU=y

# App stack
CONFIG_MAIN_STACK_SIZE=4096

# C Library
# Default use minimal libc and with COMMON_LIBC_MALLOC_ARENA_SIZE defining
# HEAP size (512 bytes) are enough to run DNS.
#CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=4096

# Heap and stacks
CONFIG_HEAP_MEM_POOL_SIZE=47250
CONFIG_MAIN_STACK_SIZE=2048
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
CONFIG_HW_STACK_PROTECTION=y
# Increase AT monitor heap size to be able to fit both neighbor cell measurement
# and other AT notifications that may come in rapid succession.
CONFIG_AT_MONITOR_HEAP_SIZE=1024

# Networking config
CONFIG_NETWORKING=y
CONFIG_NET_NATIVE=n
CONFIG_NET_SOCKETS_OFFLOAD=y
CONFIG_NET_IPV4=y
CONFIG_NET_IPV6=n
#CONFIG_NET_TCP=y
#CONFIG_NET_SHELL=y

# Sockets
CONFIG_NET_SOCKETS=y
CONFIG_NET_SOCKETS_POSIX_NAMES=y
CONFIG_NET_SOCKETS_POLL_MAX=4

# Network driver config
CONFIG_TEST_RANDOM_GENERATOR=y

# Network address config
CONFIG_NET_CONFIG_SETTINGS=y
#CONFIG_NET_CONFIG_NEED_IPV4=y
#CONFIG_NET_DHCPV4=y

# Resolver
#CONFIG_DNS_RESOLVER=y

# HTTP
CONFIG_HTTP_CLIENT=y

# Network debug config
CONFIG_LOG=y
CONFIG_LOG_MODE_DEFERRED=y
CONFIG_NET_LOG=y
#CONFIG_NET_SOCKETS_LOG_LEVEL_DBG=n
#CONFIG_NET_HTTP_LOG_LEVEL_DBG=n
CONFIG_NET_BUF_LOG_LEVEL_INF=y
CONFIG_NET_SOCKETS_LOG_LEVEL_INF=y
CONFIG_NET_HTTP_LOG_LEVEL_INF=y
CONFIG_NET_IPV4_LOG_LEVEL_INF=y

CONFIG_TAGOIO_HTTP_POST_LOG_LEVEL_INF=y
CONFIG_NRF_MODEM_LIB_LOG_LEVEL_INF=y
CONFIG_LTE_LINK_CONTROL_LOG_LEVEL_INF=y

# AT Host library - Used to send AT commands directy from an UART terminal and to allow
#                   integration with nRF Connect for Desktop LTE Link monitor application.
CONFIG_AT_HOST_LIBRARY=y


# TagoIO API
#CONFIG_TAGOIO_DEVICE_TOKEN="<your device token API>"
CONFIG_TAGOIO_DEVICE_TOKEN="0b2aad0f-618b-46bf-9d93-3c7b4bff6142"
CONFIG_CBPRINTF_FP_SUPPORT=y

# Flash - Used in FOTA, settings and storage for P-GPS.
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
CONFIG_STREAM_FLASH=y
CONFIG_MPU_ALLOW_FLASH_WRITE=y

# MCUBOOT
CONFIG_BOOTLOADER_MCUBOOT=y
CONFIG_IMG_MANAGER=y
CONFIG_MCUBOOT_IMG_MANAGER=y
CONFIG_IMG_ERASE_PROGRESSIVELY=y
CONFIG_SECURE_BOOT=n
CONFIG_BUILD_S1_VARIANT=n


# added TJM overlay_modem.conf
# UART support
CONFIG_SERIAL=y

# GSM modem support
#CONFIG_MODEM=y
#CONFIG_MODEM_SHELL=y
#CONFIG_MODEM_CMD_HANDLER_MAX_PARAM_COUNT=20
#CONFIG_MODEM_GSM_PPP=y
#CONFIG_MODEM_GSM_RX_STACK_SIZE=1024
#CONFIG_MODEM_GSM_APN="<your Access Point Name (APN)>"
CONFIG_MODEM_GSM_APN="vzwinternet"

# Network management events
#CONFIG_NET_CONNECTION_MANAGER=y
CONFIG_NET_CONNECTION_MANAGER=y  #experimentalo+

#nRF modem library
CONFIG_NRF_MODEM_LIB=y
CONFIG_NRF_MODEM_LIB_ON_FAULT_APPLICATION_SPECIFIC=y

# PPP networking support
#CONFIG_NET_NATIVE=y
#CONFIG_NET_DRIVERS=y
#CONFIG_NET_PPP=y
#CONFIG_NET_L2_PPP=y
#CONFIG_NET_L2_PPP_TIMEOUT=10000

# LTE link control
CONFIG_LTE_LINK_CONTROL=y
CONFIG_PDN=y
CONFIG_PDN_ESM_STRERROR=y
CONFIG_MODEM_INFO=y
CONFIG_LTE_NETWORK_MODE_LTE_M_GPS=y

#CONFIG_DNS_RESOLVER_MAX_SERVERS=1
#CONFIG_DNS_SERVER_IP_ADDRESSES=y
#CONFIG_DNS_SERVER1="8.8.8.8"

# Power saving timers.
### 320 hours PSM.
CONFIG_LTE_PSM_REQ=y
CONFIG_LTE_PSM_REQ_RPTAU="11000001"
### 20 seconds active time.
CONFIG_LTE_PSM_REQ_RAT="00001010"


# added TJM
CONFIG_I2C=y
CONFIG_I2C_LOG_LEVEL_INF=y
CONFIG_ADC=y
CONFIG_ADC_NRFX_SAADC=y
CONFIG_SPI=y
CONFIG_SPI_ASYNC=y
CONFIG_SPI_LOG_LEVEL_INF=y


