Hi Jared,
I saw your Example code of nrf cloud AGPS sample. I got confused about what to add to the prj.conf file.
In that, you mentioned adding some lines in the prj.conf file. code is below:
# Cloud prefix for nRF9160 Feather
CONFIG_NRF_CLOUD_CLIENT_ID_PREFIX="feather-"
# Enable Zephyr application to be booted by MCUboot
CONFIG_BOOTLOADER_MCUBOOT=y
# COEX0 is used to enable the GPS LNA, but it has to be configured to do so.
CONFIG_NRF9160_GPS_SET_COEX0=y
CONFIG_NRF9160_GPS_COEX0_STRING="AT%XCOEX0=1,1,1565,1586"
when I opened the file there is already some code is already written. code is below:
#
# Copyright (c) 2020 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic
#
# General config
CONFIG_NEWLIB_LIBC=y
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
CONFIG_RESET_ON_FATAL_ERROR=n
CONFIG_NCS_SAMPLES_DEFAULTS=y
CONFIG_REBOOT=y
# Logging
CONFIG_LOG=y
# Network
CONFIG_NETWORKING=y
CONFIG_NET_NATIVE=n
CONFIG_NET_SOCKETS=y
CONFIG_NET_SOCKETS_OFFLOAD=y
# LTE link control
CONFIG_LTE_LINK_CONTROL=y
CONFIG_LTE_NETWORK_MODE_LTE_M_GPS=y
CONFIG_LTE_AUTO_INIT_AND_CONNECT=n
CONFIG_LTE_PSM_REQ_RPTAU="00011111"
CONFIG_LTE_PSM_REQ_RAT="00000010"
CONFIG_LTE_EDRX_REQ=y
CONFIG_LTE_POWER_SAVING_MODE=y
# BSD library
CONFIG_BSD_LIBRARY=y
# DK
CONFIG_DK_LIBRARY=y
# AT host
CONFIG_AT_HOST_LIBRARY=y
CONFIG_UART_INTERRUPT_DRIVEN=y
# nRF Cloud
CONFIG_CLOUD_API=y
CONFIG_NRF_CLOUD=y
CONFIG_NRF_CLOUD_AGPS=y
CONFIG_NRF_CLOUD_AGPS_LOG_LEVEL_INF=y
CONFIG_MQTT_KEEPALIVE=1200
CONFIG_MODEM_INFO=y
# GPS
CONFIG_NRF9160_GPS=y
CONFIG_NRF9160_GPS_LOG_LEVEL_DBG=y
# Heap and stacks
# Extended memory heap size needed for encoding nRF Cloud messages to JSON
CONFIG_HEAP_MEM_POOL_SIZE=8192
CONFIG_MAIN_STACK_SIZE=4096
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
So my questions do I need to ADD those lines which you have mentioned in the example?
OR
Keep as it is?
OR
Erase all the code and ADD just your lines?
Do I need to make any changes to CmakeLists while running the sample code? (You have not mentioned this so just to clarify)
With Regards,
Rahul Kidecha