From 02f26ba882a7f3bc5ca2779ac1b7484c9407793e Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Sun, 9 Aug 2020 20:33:22 +0200 Subject: sms storage flash mem --- fw/esp32/components/eos/cell_modem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'fw') diff --git a/fw/esp32/components/eos/cell_modem.c b/fw/esp32/components/eos/cell_modem.c index c758a73..0a4c754 100644 --- a/fw/esp32/components/eos/cell_modem.c +++ b/fw/esp32/components/eos/cell_modem.c @@ -32,7 +32,7 @@ #define MODEM_ETYPE_INIT 1 #define MODEM_ETYPE_RI 2 -#define AT_CMD_INIT_SIZE 4 +#define AT_CMD_INIT_SIZE 5 #define MIN(X, Y) (((X) < (Y)) ? (X) : (Y)) #define MAX(X, Y) (((X) > (Y)) ? (X) : (Y)) @@ -43,7 +43,8 @@ static char *at_cmd_init[AT_CMD_INIT_SIZE] = { "AT+CFGRI=1\r", "AT+CSCLK=1\r", "AT+CLIP=1\r", - "AT+CMGF=0\r" + "AT+CMGF=0\r", + "AT+CPMS=\"ME\",\"ME\",\"ME\"\r" }; static SemaphoreHandle_t mutex; -- cgit v1.2.3