/* * modem.h * (c) 2019, Jonas Gunz, jonasgunz.de * * */ #include #include #include #include #define _AT "AT\r\n" #define _AT_ANSWER "ATA\r\n" #define _AT_ECHO_OFF "ATE0\r\n" #define _AT_ECHO_ON "ATE1\r\n\”" #define _AT_HANGUP "ATH\r\n" #define _AT_CMD_MODE "+++\r\n" #define _AT_MUTE "ATM0\r\n" int modem_accept_wait(int fd); int modem_command(int fd, char* cmd, int timeout_ms); int modem_run(int fd, int argc, char* argv[]);