From 3ede7cb5691ad52a289ac7c6b19d8ef77744ba1f Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Fri, 28 Jun 2019 00:23:55 +0200 Subject: Modem controls working --- src/modem.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/modem.h') diff --git a/src/modem.h b/src/modem.h index bc0cfac..09823a5 100644 --- a/src/modem.h +++ b/src/modem.h @@ -15,10 +15,11 @@ #define _AT_ECHO_OFF "ATE0\r\n" #define _AT_ECHO_ON "ATE1\r\n\”" #define _AT_HANGUP "ATH\r\n" -#define _AT_CMD_MODE "+++" +#define _AT_CMD_MODE "+++\r\n" +#define _AT_MUTE "ATM0\r\n" int modem_accept_wait(int fd); -int modem_hang(int fd); +int modem_command(int fd, char* cmd, int timeout_ms); int modem_run(int fd, int argc, char* argv[]); -- cgit v1.2.3