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

Function at_vprintf

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

Source from the content-addressed store, hash-verified

64 return rt_device_write(dev, pos, buffer, size);
65}
66rt_size_t at_vprintf(rt_device_t device, char *send_buf, rt_size_t buf_size, const char *format, va_list args)
67{
68 rt_size_t len = vsnprintf(send_buf, buf_size, format, args);
69 if (len == 0)
70 {
71 return 0;
72 }
73
74#ifdef AT_PRINT_RAW_CMD
75 at_print_raw_cmd("sendline", send_buf, len);
76#endif
77
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);

Callers 2

at_obj_exec_cmd_formatFunction · 0.85
at_server_printfFunction · 0.85

Calls 2

at_print_raw_cmdFunction · 0.85
at_utils_sendFunction · 0.85

Tested by

no test coverage detected