| 111 | return at_utils_send(device, 0, send_buf, len); |
| 112 | } |
| 113 | rt_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 | } |
no test coverage detected