void resp_callback(const char *at_response);
void foo(void);
void resp_callback(const char *at_response)
{
printk("AT response received:\n%s", at_response);
}
void foo(void)
{
int err;
err = nrf_modem_at_cmd_async(resp_callback, "AT%NCELLMEAS", 1);
if (err)
{
printf("error reading cmsd\n") ;
}
}
here i need to store this response in my buffer : %NCELLMEAS: 0,"00313892","405861","C019",65535,2509,167,48,15,109947,2509,182,48,15,0,2415,279,38,-1,80,2417,466,56,18,117,2417,439,53,13,117,0 , instead of ok , how ,please help to store that response instead of ok .

This is code i added but the copied thing is only OK, but I need whole data of ncell as %NCELLMEAS: 0,"0050E190","405861","C084",65535,2415,135,51,17,341448,2415,327,47,10,0,2415,129,46,8,0,2415,276,43,3,0,2509,26,54, HOW to store that response in my buffer.please help me