MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / at_vprintfln

Function at_vprintfln

components/net/at/src/at_utils.c:80–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78 return at_utils_send(device, 0, send_buf, len);
79}
80rt_size_t at_vprintfln(rt_device_t device, char *send_buf, rt_size_t buf_size, const char *format, va_list args)
81{
82 rt_size_t len = vsnprintf(send_buf, buf_size - 2, format, args);
83 if (len == 0)
84 {
85 return 0;
86 }
87
88 send_buf[len++] = '\r';
89 send_buf[len++] = '\n';
90
91#ifdef AT_PRINT_RAW_CMD
92 at_print_raw_cmd("sendline", send_buf, len);
93#endif
94
95 return at_utils_send(device, 0, send_buf, len);
96}
97rt_size_t at_vprintfcr(rt_device_t device, char *send_buf, rt_size_t buf_size, const char *format, va_list args)
98{
99 rt_size_t len = vsnprintf(send_buf, buf_size - 1, format, args);

Callers 3

at_obj_exec_cmdFunction · 0.85
at_obj_exec_cmd_formatFunction · 0.85
at_server_printflnFunction · 0.85

Calls 2

at_print_raw_cmdFunction · 0.85
at_utils_sendFunction · 0.85

Tested by

no test coverage detected