From 6595abf45d9c2a9ecb9b893f94e9ce93a2a7ea25 Mon Sep 17 00:00:00 2001 From: Jordan Yates Date: Tue, 21 Apr 2026 17:13:15 +1000 Subject: [PATCH] rpc_wrappers: lte_at_cmd: echo provided command Echo the provided command when the response is received. AT commands can include the `$` character for vendor specific extensions, which can cause shell substitution problems (wrap like this 'AT$CMD' to disable shell expansion). Printing the command sent makes these errors more obvious. Signed-off-by: Jordan Yates --- src/infuse_iot/rpc_wrappers/lte_at_cmd.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/infuse_iot/rpc_wrappers/lte_at_cmd.py b/src/infuse_iot/rpc_wrappers/lte_at_cmd.py index 090ec42..ce291bc 100644 --- a/src/infuse_iot/rpc_wrappers/lte_at_cmd.py +++ b/src/infuse_iot/rpc_wrappers/lte_at_cmd.py @@ -34,6 +34,7 @@ def handle_response(self, return_code, response): response_bytes = bytes(response.rsp) if len(response_bytes): decoded = bytes(response.rsp).decode("utf-8").strip() + print(f"> {self.args.cmd}") print(decoded) # Notification that command failed if return_code != 0: