CONFIG_LOG=y
CONFIG_LOG_BACKEND_FORMAT_TIMESTAMP=y
CONFIG_LOG_DEFAULT_LEVEL=1

# Power management, required to disable default behavior of deep sleep on timeout
CONFIG_PM_DEVICE=y
CONFIG_POWEROFF=y
CONFIG_CRC=y

# IPC communication
CONFIG_IPC_SERVICE=y
CONFIG_IPC_SERVICE_BACKEND_ICMSG=y
CONFIG_MBOX=y

# QSPI NOR Flash
#CONFIG_FLASH=y
CONFIG_SPI=y
CONFIG_NORDIC_QSPI_NOR=y

# Device drivers
CONFIG_I2C=y
CONFIG_FUEL_GAUGE=y
CONFIG_MAX17048=y
CONFIG_CHARGER_BQ24295=y
CONFIG_CHARGER_INIT_PRIORITY=90

#######################      Application Sensor Begin      #######################
CONFIG_BME680=n
CONFIG_SETTINGS_NONE=n
CONFIG_SENSOR=y
CONFIG_BME68X_IAQ=y
CONFIG_BME68X_IAQ_SAMPLE_RATE_LOW_POWER=y
CONFIG_BME68X_IAQ_LOG_LEVEL_INF=y
CONFIG_BME68X_IAQ_SAVE_INTERVAL_MINUTES=60

#######################      Modem Configuration Begin      #######################
CONFIG_UART_ASYNC_API=y

CONFIG_NETWORKING=y
CONFIG_NET_NATIVE=y
CONFIG_NET_L2_PPP=y
CONFIG_NET_IPV4=y
CONFIG_NET_IPV6=n       # explicit disable to save RAM
CONFIG_NET_TCP=y        # for MQTT
CONFIG_NET_UDP=y        # explicit disable to save RAM
CONFIG_NET_SOCKETS=y
CONFIG_DNS_RESOLVER=y
CONFIG_NET_L2_PPP_OPTION_DNS_USE=y
CONFIG_NET_MGMT=y
CONFIG_NET_MGMT_EVENT=y
CONFIG_NET_CONNECTION_MANAGER=y
CONFIG_MODEM=y
CONFIG_MODEM_CELLULAR=y
CONFIG_MODEM_CELLULAR_APN="telenor.iot"
CONFIG_MODEM_MODULES_LOG_LEVEL_INF=y
CONFIG_MODEM_LOG_LEVEL_INF=y

CONFIG_NET_BUF_POOL_USAGE=y
CONFIG_NET_BUF_RX_COUNT=72
CONFIG_NET_PKT_RX_COUNT=36
CONFIG_NET_BUF_TX_COUNT=72
CONFIG_NET_PKT_TX_COUNT=36
CONFIG_NET_BUF_VARIABLE_DATA_SIZE=y
CONFIG_NET_BUF_DATA_POOL_SIZE=8192
CONFIG_MODEM_PPP_NET_BUF_FRAG_SIZE=512

CONFIG_MQTT_LIB=y
CONFIG_MQTT_LOG_LEVEL_INF=y
CONFIG_NET_LOG=y
CONFIG_NET_SHELL=n

CONFIG_MAIN_STACK_SIZE=9216
CONFIG_NET_MGMT_EVENT_STACK_SIZE=2048

CONFIG_POSIX_API=y

CONFIG_THREAD_NAME=y
CONFIG_WARN_EXPERIMENTAL=n

#######################   BLE Host Configuration Begin   #######################
CONFIG_PARTITION_MANAGER_ENABLED=y

CONFIG_NRFX_UARTE0=y
CONFIG_SERIAL=y
CONFIG_GPIO=y
CONFIG_HEAP_MEM_POOL_SIZE=4096

CONFIG_BT=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_DEVICE_NAME="BDS NUS Service"
CONFIG_BT_DEVICE_APPEARANCE=833
CONFIG_BT_MAX_CONN=1
CONFIG_BT_MAX_PAIRED=1
CONFIG_BT_CONN_LOG_LEVEL_DBG=y

# Enable the NUS service
CONFIG_BT_NUS=y

# Enable bonding
CONFIG_BT_SETTINGS=y
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
CONFIG_NVS=y
CONFIG_SETTINGS=y

# Enable DK LED and Buttons library
CONFIG_DK_LIBRARY=y

# This example requires more stack
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048

# Make sure printk is printing to the UART console, for BLE message
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

# Config logger and redirect log to JLINK RTT viewer
CONFIG_LOG=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_LOG_BACKEND_RTT=y
CONFIG_LOG_BACKEND_UART=n
CONFIG_LOG_PRINTK=n

CONFIG_ASSERT=y
