MaJerle / lwcell

Lightweight cellular modem host AT library
MIT License
395 stars 147 forks source link

Sim800C Reset Pin #32

Closed erdemts closed 4 years ago

erdemts commented 4 years ago

Hi Majerle, I'm using Sim800C. It hasn't got a reset pin. in gsm.c i added defines below. fyi.

if defined(GSM_RESET_PIN)

        /* Try with hardware reset */
        if (gsm.ll.reset_fn != NULL && gsm.ll.reset_fn(1)) {
            gsm_delay(2);
            gsm.ll.reset_fn(0);
            gsm_delay(500);
        }

endif

        /* Send manual AT command */
        AT_PORT_SEND_BEGIN_AT();
MaJerle commented 4 years ago

I don't catch why did you do it this way? If you do not have reset pin, you can still reset it with AT command that is implemented in the lib.

erdemts commented 4 years ago

Thanks