diff options
author | Uros Majstorovic <majstor@majstor.org> | 2020-08-07 19:26:12 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2020-08-07 19:26:12 +0200 |
commit | 3af816f20b94326b05a6dde21d7f734df14b61d3 (patch) | |
tree | a4bbdb6e22c670b7231d9d909dc6b75fe9c5433e /fw/esp32/components/eos/cell_ussd.c | |
parent | a35636fc4a55e6b0cfbb5772f7274ee749059836 (diff) |
net driver: removed obsolete flags; urc process simplefied; pcm: added active flag; tested cell voice/data
Diffstat (limited to 'fw/esp32/components/eos/cell_ussd.c')
-rw-r--r-- | fw/esp32/components/eos/cell_ussd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fw/esp32/components/eos/cell_ussd.c b/fw/esp32/components/eos/cell_ussd.c index 2daa00f..3f5ea3b 100644 --- a/fw/esp32/components/eos/cell_ussd.c +++ b/fw/esp32/components/eos/cell_ussd.c @@ -3,9 +3,9 @@ #include <esp_log.h> +#include "eos.h" #include "at_cmd.h" #include "cell.h" -#include "gsm.h" static char cmd[256]; @@ -25,6 +25,7 @@ void eos_cell_ussd_handler(unsigned char mtype, unsigned char *buffer, uint16_t cmd_len = snprintf(cmd, sizeof(cmd), "AT+CUSD=1,\"%s\",15\r", buffer); if ((cmd_len < 0) || (cmd_len >= sizeof(cmd))) return; at_cmd(cmd); + rv = at_expect("^OK", "^ERROR", 1000); break; } @@ -32,3 +33,4 @@ void eos_cell_ussd_handler(unsigned char mtype, unsigned char *buffer, uint16_t eos_modem_give(); } +void eos_cell_ussd_init(void) {}
\ No newline at end of file |