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

Function at_vprintflf

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

Source from the content-addressed store, hash-verified

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);
116 if (len == 0)
117 {
118 return 0;
119 }
120
121 send_buf[len++] = '\n';
122
123#ifdef AT_PRINT_RAW_CMD
124 at_print_raw_cmd("sendline", send_buf, len);
125#endif
126
127 return at_utils_send(device, 0, send_buf, len);
128}

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