<environment>
- Windows10
- modem fw v1.2.0
- nrf v1.3.0
I try to get mnc and mcc data but no luck. Any help?
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <zephyr.h>
#include <string.h>
#include <stdio.h>
#include <modem/modem_info.h>
#include <modem/lte_lc.h>
void main() {
int ret;
char rx_buf[MODEM_INFO_MAX_RESPONSE_SIZE];
u16_t rx_buf_short;
// Connect LTE first
printk("LTE Link Connecting ...\n");
ret = lte_lc_init_and_connect();
if(ret < 0){
printk("Error: lte_lc_init_and_connect\n");
return;
} else {
printk("LTE Link Connected!\n");
}
I also tried it using modem_info_params_init and modem_info_params_get, but modem_info_params_get causes an error -11.