diff options
author | Uros Majstorovic <majstor@majstor.org> | 2021-02-27 03:17:28 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2021-02-27 03:17:28 +0100 |
commit | 9ce2ce35d5f94c5d0b83ca8d9ceb21c8c1cf3cd4 (patch) | |
tree | 6436b73665b3f093f498398d43a020b1a71e1137 /fw/esp32/components/eos/cell_data.c | |
parent | fe1d292f241bc7a024a9c20627f6300f3ebc433b (diff) |
cell/wifi refactoring
Diffstat (limited to 'fw/esp32/components/eos/cell_data.c')
-rw-r--r-- | fw/esp32/components/eos/cell_data.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/fw/esp32/components/eos/cell_data.c b/fw/esp32/components/eos/cell_data.c deleted file mode 100644 index f9a755f..0000000 --- a/fw/esp32/components/eos/cell_data.c +++ /dev/null @@ -1,31 +0,0 @@ -#include <stdlib.h> -#include <string.h> - -#include <esp_log.h> - -#include "eos.h" -#include "cell.h" - -void eos_cell_data_handler(unsigned char mtype, unsigned char *buffer, uint16_t size) { - char *apn, *user, *pass; - - buffer += 1; - size -= 1; - switch (mtype) { - case EOS_CELL_MTYPE_DATA_CONFIGURE: - apn = (char *)buffer; - user = apn + strlen(apn) + 1; - pass = user + strlen(user) + 1; - eos_ppp_set_apn(apn); - eos_ppp_set_auth(user, pass); - break; - - case EOS_CELL_MTYPE_DATA_CONNECT: - eos_ppp_connect(); - break; - - case EOS_CELL_MTYPE_DATA_DISCONNECT: - eos_ppp_disconnect(); - break; - } -} |