diff options
author | Uros Majstorovic <majstor@majstor.org> | 2020-05-09 19:43:25 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2020-05-09 19:43:25 +0200 |
commit | e6c06c38ea7ed2c46a605af4c87f154377caadba (patch) | |
tree | 530981ad07b8a5f08a4a03c7ea5f6f4906354803 /code/esp32/components/eos/include | |
parent | 2b73dd935359e57ca32f87e3afd2435d5991685e (diff) |
added sleep/wake for modem; fixed ppp driver API
Diffstat (limited to 'code/esp32/components/eos/include')
-rw-r--r-- | code/esp32/components/eos/include/cell.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/code/esp32/components/eos/include/cell.h b/code/esp32/components/eos/include/cell.h index 4a2cfbc..3a9e955 100644 --- a/code/esp32/components/eos/include/cell.h +++ b/code/esp32/components/eos/include/cell.h @@ -10,8 +10,8 @@ #define EOS_CELL_MTYPE_AUDIO_STOP 5 #define EOS_CELL_UART_MODE_NONE 0 -#define EOS_CELL_UART_MODE_PPP 1 -#define EOS_CELL_UART_MODE_ATCMD 2 +#define EOS_CELL_UART_MODE_ATCMD 1 +#define EOS_CELL_UART_MODE_PPP 2 #define EOS_CELL_UART_MODE_RELAY 3 void eos_pcm_init(void); @@ -34,4 +34,13 @@ int eos_modem_set_mode(uint8_t mode); int eos_modem_take(void); void eos_modem_give(void); -void eos_cell_init(void);
\ No newline at end of file +void eos_modem_sleep(void); +void eos_modem_wake(void); + +void eos_ppp_set_apn(char *apn); +void eos_ppp_set_auth(char *user, char *pass); + +int eos_ppp_connect(void); +int eos_ppp_disconnect(void); + +void eos_cell_init(void); |