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

Function at_vprintfcr

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

Source from the content-addressed store, hash-verified

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);
100 if (len == 0)
101 {
102 return 0;
103 }
104
105 send_buf[len++] = '\r';
106
107#ifdef AT_PRINT_RAW_CMD
108 at_print_raw_cmd("sendline", send_buf, len);
109#endif
110
111 return at_utils_send(device, 0, send_buf, len);
112}
113rt_size_t at_vprintflf(rt_device_t device, char *send_buf, rt_size_t buf_size, const char *format, va_list args)
114{
115 rt_size_t len = vsnprintf(send_buf, buf_size - 1, format, args);

Callers 1

at_obj_exec_cmd_formatFunction · 0.85

Calls 2

at_print_raw_cmdFunction · 0.85
at_utils_sendFunction · 0.85

Tested by

no test coverage detected