Hey Guys :) have a MQTT code that publishes certain AT commands, It works for all cases except Mutlicell 'NCELLMEAS' command. Any help would be appreciated.
[This Works]
const char at_cgsn_cmd[] = "AT+CGSN=1";
char cmd_rcv_buf_cgsn[50];
int ret_cgsn = at_cmd_write(at_cgsn_cmd, cmd_rcv_buf_cgsn, sizeof(cmd_rcv_buf_cgsn), &state);
printk("CGSN_ANS: %s", cmd_rcv_buf_cgsn);
Result
CGSN_ANS: +CGSN: "352656106109179"
[This Doesn't]
const char at_ncell_cmd[] = "AT%NCELLMEAS";
char cmd_rcv_buf_ncell[500];
int ret_ncell = at_cmd_write(at_ncell_cmd, cmd_rcv_buf_ncell, sizeof(cmd_rcv_buf_ncell), &state);
printk("MULTICELL_ANS: %s", cmd_rcv_buf_ncell);
Result :
MULTICELL_ANS: %NCELLMEAS: 0,"0A3FED10","310410","8D0C",336,5110,242,37,17,3373
Although the AT Command works and outputs a result.The Result wouldn't go inside the buffer (It should look something like this 'MULTICELL_ANS: %NCELLMEAS: 0,"0A3FED10","310410","8D0C",336,5110,242,37,17,3373) in 1 single line . We are not getting any output on the MQTT server for NCELLMEAS
1. We have tried playing around with the buffer size
2. We have tried the start_cell_measurements(); and print_cell_data(); without any results.