aboutsummaryrefslogtreecommitdiff
path: root/src/modem.h
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2019-06-28 00:23:55 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2019-06-28 00:23:55 +0200
commit3ede7cb5691ad52a289ac7c6b19d8ef77744ba1f (patch)
tree934b1cdaa8ad083a714e14d4c941c56838ff98db /src/modem.h
parentb4582f3209a4916ffaa54baa716ab27a87bb961a (diff)
downloadbbs-3ede7cb5691ad52a289ac7c6b19d8ef77744ba1f.tar.gz
Modem controls working
Diffstat (limited to 'src/modem.h')
-rw-r--r--src/modem.h5
1 files changed, 3 insertions, 2 deletions
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[]);