Hi,
Here is what sending AT command and reading response documentation Note states about nrf_modem__at_cmd_async():
When there is a pending response, all other functions belonging to the AT API will block until the response is received in the callback function.
Have you ensured that only one asynchronous command is used at any given time?
Best regards,
Dejan
Hi,
Additionally, there is a Note in previously provided link which mentions that % in AT command should be escaped with another %. You could try to modify your nrf_modem_at_cmd_async() function like this
err = nrf_modem_at_cmd_async(resp_callback, "AT%%NCELLMEAS=1");
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
2nd picture is output log after 10 seconds ncell coming but not stored in response buffer.
from where th ncell data is printing after some delay, i mean which variable
Hi,
"Response: OK" is expected because AT%NCELLMEAS=1 effectively subscribes to %NCELLMEAS notifications. For actual result, it would need to be delivered as AT notifications and for that you could look at AT monitor library.
Best regards,
Dejan