#include <include/modem/at_cmd_custom.h>
Fill response buffer without overflowing the buffer.
- Note
- For the modem library to accept the response in
buf
as a success, the response must contain "OK\\r\\n". If the response is an error, use "ERROR\\r\\n" or appropriate CMS/CME responses, e.g. "+CMS ERROR: <errorcode>".
- Parameters
-
buf | Buffer to put response into. |
buf_size | Size of the response buffer. |
response | Response format. |
... | Format arguments. |
- Return values
-
0 | on success. |
-NRF_EFAULT | if no buffer provided. |
-NRF_E2BIG | if the provided buffer is too small for the response. |