ATT_SMS_System for home security system
Dependencies: FXOS8700CQ MODSERIAL mbed-rtos mbed
Fork of ATT_Cellular_IOT_Button by
Diff: main.cpp
- Revision:
- 33:fa964b8b3b19
- Parent:
- 32:1e052a3e73fe
- Child:
- 35:c9c2eb8fb0a8
diff -r 1e052a3e73fe -r fa964b8b3b19 main.cpp --- a/main.cpp Fri Jul 22 16:22:17 2016 +0000 +++ b/main.cpp Fri Jul 22 17:12:26 2016 +0000 @@ -38,6 +38,8 @@ #define MDM_DBG_AT_CMDS (1 << 0) int mdm_dbgmask = MDM_DBG_OFF; +#define WNC_WAIT_FOR_AT_CMD_MS 40 + Serial pc(USBTX, USBRX); SerialBuffered mdm(PTD3, PTD2, 128); DigitalOut led_green(LED_GREEN); @@ -94,7 +96,7 @@ int mdm_sendAtCmd(const char *cmd, const char **rsp_list, int timeout_ms) { // Per WNC wait: - wait_ms(20); + wait_ms(WNC_WAIT_FOR_AT_CMD_MS); if (cmd && strlen(cmd) > 0) { if (mdm_dbgmask & MDM_DBG_AT_CMDS) { @@ -191,7 +193,7 @@ size_t n = strlen(cmd); // Per WNC wait: - wait_ms(20); + wait_ms(WNC_WAIT_FOR_AT_CMD_MS); if (cmd && n > 0) { if (mdm_dbgmask & MDM_DBG_AT_CMDS) {