Skip to main content

at_response

Macro at_response 

Source
macro_rules! at_response {
    ($size:expr, $at_resp:expr; $a1:expr) => { ... };
    ($size:expr, $at_resp:expr; $a1:expr, $a2:expr) => { ... };
    ($size:expr, $at_resp:expr; $a1:expr, $a2:expr, $a3:expr) => { ... };
    ($size:expr, $at_resp:expr; $a1:expr, $a2:expr, $a3:expr, $a4:expr) => { ... };
    ($size:expr, $at_resp:expr; $a1:expr, $a2:expr, $a3:expr, $a4:expr, $a5:expr) => { ... };
    ($size:expr, $at_resp:expr; $a1:expr, $a2:expr, $a3:expr, $a4:expr, $a5:expr, $a6:expr) => { ... };
}
Expand description

Macro to format an AT response with 1–6 comma-separated parameters.

§Syntax

at_response!(SIZE, AT_RESP; arg1, arg2, ..., arg6)
  • SIZE — const usize for the response buffer capacity
  • AT_RESP — the AT response prefix string
  • arg1..arg6 — values to append, comma-separated