Hi,
what is the valid range of interval for NRF_SO_GNSS_FIX_INTERVAL? when we set it to 5 it will failed, but 1 and 10 can be successful.
here is the code and error log when set it to 5:
client.sock = nrf_socket(NRF_AF_LOCAL, NRF_SOCK_DGRAM, NRF_PROTO_GNSS);
if (client.sock < 0) {
LOG_ERR("Could not init socket (err: %d)", -errno);
goto error;
}
ret = nrf_setsockopt(client.sock, NRF_SOL_GNSS, NRF_SO_GNSS_FIX_RETRY,
&retry, sizeof(retry));
if (ret != 0) {
LOG_ERR("Failed to set fix retry value (err: %d)", -errno);
goto error;
}
ret = nrf_setsockopt(client.sock, NRF_SOL_GNSS,
NRF_SO_GNSS_FIX_INTERVAL, &interval, sizeof(interval));
if (ret != 0) {
LOG_ERR("Failed to set fix interval value (err: %d)", -errno);
goto error;
}
<err> gps: Failed to set fix interval value (err: -14)
condition: serial_lte_modem sample on NCS v1.2 with modem mfw_nrf9160_1.1.1