nRF9160-DK GPS AND NBIOT

Hi!
We are trying to put in the same application for both GNSS(developer.nordicsemi.com/.../README.html) and NBIOT(developer.nordicsemi.com/.../README.html).

The examples executed separately work with no problems. When we try to put them in the same application we have an error in these lines of code:

printk("Waiting for network.. \n");
int err = lte_lc_init_and_connect_async(lte_handler);
if (err) {
printk("Failed to connect to the LTE network, err %d\n", err);
return 0;
}
return 1;

 The output is the following:

Waiting for network..
+CEREG: 2,"90E9","00E2B06F",9

We need your help! Thank you!

Parents Reply
  • Hello,

    Yes, I understood that from your initial post, but that information is not enough for me to able to help you.

    In the code snippet you sent me there are lines that say "return 0;" and "return 1;" after the line that connects to LTE. Do you know how to check if that function returns any of those values, or if it does it stop completely?

    Please also tell me more about how did you combine the samples. Did you combine the prj.conf files too?

    Best regards,

    Michal

Children
No Data
Related